You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Test { static name = "what"; } will report "what" for Test.name in IE11 but "Test" in FF and Chrome. This seems to be by design (https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Function/name). Either the use of 'name' should be not allowed at all or the compiler should do some name mangling - although according to the specs the first option seems to be more appropriate.
The text was updated successfully, but these errors were encountered:
JMS-1
changed the title
Should forbid static property named
Should forbid static property named 'name'
Feb 6, 2016
class Test { static name = "what"; } will report "what" for Test.name in IE11 but "Test" in FF and Chrome. This seems to be by design (https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Function/name). Either the use of 'name' should be not allowed at all or the compiler should do some name mangling - although according to the specs the first option seems to be more appropriate.
The text was updated successfully, but these errors were encountered: