[Webkit-unassigned] [Bug 140420] JavaScript identifier incorrectly parsed if the prefix before an escape sequence is a keyword

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 14 02:45:00 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=140420

--- Comment #3 from Alan Tam <Tam at SiuLung.com> ---
It is not limited to for..in, but all keywords. Indeed, object literal is another way to trigger the bug.

> ({while\u00e9dit:1})
SyntaxError: Unexpected identifier '\u00e9dit'. Expected a ':' following the property name 'while'.

Again, this works in Chrome and Firefox, returning this hash: {"whileƩdit":1}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150114/ada3f204/attachment-0002.html>


More information about the webkit-unassigned mailing list