Status: New
Owner: ----
New issue 661 by geoffers: Parser allows getters/setters to have arguments,
should throw
http://code.google.com/p/v8/issues/detail?id=661
Currently the parser allows getters and setters to have arbitrary numbers
of arguments passed to them: the ES5 spec only defines getters with no
arguments (i.e., "()") and setters with a single argument; as such the
current behaviour is an undocumented extension to the syntax of ES.
Syntax extensions are inevitably the worst type of extension because they
prevent all execution of the script in other engines that don't support
them. It'd be preferably to only allow what the spec requires and throw
SyntaxError in the other cases.
See <http://stuff.gsnedders.com/es/getterparsing.html> for a test for this.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
To unsubscribe from this group, send email to v8-dev+unsubscribegooglegroups.com or reply
to this email with the words "REMOVE ME" as the subject.