Status: Accepted
Owner: [email protected]
Labels: Type-FeatureRequest Priority-Medium ES5

New issue 820 by [email protected]: Allow number and string literals as property names of literal get/set properties.
http://code.google.com/p/v8/issues/detail?id=820

ES5 requires the object literal get/set syntax to accept both numbers and string literals as property names. E.g.:
 var o = {get 4() { return this.v4; ], set "4"(v) { this.v4 = v; }}

V8 currently only allows propertynames (identifiers and keywords).


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to