Status: New
Owner: ----
New issue 1998 by [email protected]: Property getter may not have a parameter
http://code.google.com/p/v8/issues/detail?id=1998
11.1.5 Object Initialiser
PropertyAssignment :
PropertyName : AssignmentExpression
get PropertyName() { FunctionBody }
set PropertyName( PropertySetParameterList ) { FunctionBody }
We currently allow a ParameterList for both getters and setters which is a
spec violation/extension
The following should be syntax errors:
({get prop(x) {} }()
({set prop(x, y) {} }()
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev