[Webkit-unassigned] [Bug 200638] New: jsc errors on unicode escapes in keywords in non-keyword positions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 12 11:50:36 PDT 2019


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

            Bug ID: 200638
           Summary: jsc errors on unicode escapes in keywords in
                    non-keyword positions
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Windows 10
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: wwigham at gmail.com

Steps to reproduce the problem:
1. Paste `const a = {def\u0061ult: 12}` into interpreter

What is the expected behavior?
No errors, `a` is an object with a member named `default` with value `12`.

What went wrong?
`Uncaught SyntaxError: Keyword must not contain escaped characters`

Relevant spec section: https://tc39.es/ecma262/#prod-IdentifierName

This works in chakra-based edge and firefox, however chrome exhibits the same [bug](https://bugs.chromium.org/p/chromium/issues/detail?id=993000&can=2&q=unicode%20escape). I happened to find this while working on https://github.com/microsoft/TypeScript/pull/32718.

-- 
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/20190812/1b0071d3/attachment.html>


More information about the webkit-unassigned mailing list