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
When trying to convert a static method constructor, the parser throws an unintelligible error, Parse Error : syntax error, unexpected 'function Object() { [native code] }', expecting T_STRING on line n, a more specific error would be nice for JS newbies.
Example code that triggers the error:
<?php class a { public static function constructor() {} }
The text was updated successfully, but these errors were encountered:
Many thanks for the bug report. Need to dig a little, but for me this is due to the fact that the function name is used/indexed somewhere as a property over an object.
I can reproduce the same behavior on :
<?phpclass a {
publicfunction__proto__() {}
}
I'll work on it in few days, maybe will release it this week-end
When trying to convert a static method
constructor
, the parser throws an unintelligible error,Parse Error : syntax error, unexpected 'function Object() { [native code] }', expecting T_STRING on line n
, a more specific error would be nice for JS newbies.Example code that triggers the error:
The text was updated successfully, but these errors were encountered: