-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Method type declarations violate a es6 specification #6138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It says functions created for get/set accessors, which these functions aren't, so it's not clear that this is actually a problem. |
I could not find a just said section about this behavior. This spec is a closest explanation about this behavior. I thought this is spec because there is this behavior in chrome and firefox. But edge has not this behavior. Sorry, now I cannot know that which implementation reflects a spec. |
That's the fun of it though! 😄 |
@bterlson any clue what this section corresponds to specifically? |
spec is clear and TypeScript should be more strict: |
I checked v8 and spidermonkey bug tracker but it seems has not reports about this implementation. As a spec, I also agree with @vladima . Edge seems to have correct implementations. |
A fix will need a way to propagate this information along with the signature or type. I think this also would be a breaking change. |
Doesn't appear to be worth fixing |
new
keyword.prototype
property.Class declarations also have same problems.
http://www.ecma-international.org/ecma-262/6.0/
The text was updated successfully, but these errors were encountered: