Status: Accepted
Owner: [email protected]
CC: [email protected]
Labels: Type-Bug Priority-Medium

New issue 1972 by [email protected]: Incorrect treatment of unicode escapes in keywords
http://code.google.com/p/v8/issues/detail?id=1972

The spec is not particularly clear on this, but I gather that unicode escapes in identifier names are supposed to be decoded _before_ distinguishing between keywords and identifiers. That is,

v\u0061r x = 0
eval("v\\u0061r y = 1")

should parse as valid declarations. That's what FF does, and it's also in line with other languages like Java. V8 rejects these examples with SyntaxError. JSC seems to be inconsistent and disallows the first but accepts the second.

Unfortunately, test262 has no tests for this.


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

Reply via email to