Status: New
Owner: ----

New issue 1496 by [email protected]: Can't use some reserved words in property name position of object literal in strict mode
http://code.google.com/p/v8/issues/detail?id=1496

$ v8
V8 version 3.4.7 (candidate) [console: dumb]
d8> function foo(){"use strict"; return {class: 8};}
(d8):1: SyntaxError: Unexpected strict mode reserved word
function foo(){"use strict"; return {class: 8};}
                                     ^^^^^
SyntaxError: Unexpected strict mode reserved word


Happens only in strict mode for all future reserved words and strict-only future reserved words, except for "const".

Related to issue 1214.
Please label ES5.

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

Reply via email to