<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>200638</bug_id>
          
          <creation_ts>2019-08-12 11:50:36 -0700</creation_ts>
          <short_desc>jsc errors on unicode escapes in keywords in non-keyword positions</short_desc>
          <delta_ts>2020-12-06 07:38:22 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Windows 10</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>219575</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wesley Wigham">wwigham</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ashvayka</cc>
    
    <cc>fpizlo</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1560497</commentid>
    <comment_count>0</comment_count>
    <who name="Wesley Wigham">wwigham</who>
    <bug_when>2019-08-12 11:50:36 -0700</bug_when>
    <thetext>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&amp;can=2&amp;q=unicode%20escape). I happened to find this while working on https://github.com/microsoft/TypeScript/pull/32718.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560498</commentid>
    <comment_count>1</comment_count>
    <who name="Wesley Wigham">wwigham</who>
    <bug_when>2019-08-12 11:51:56 -0700</bug_when>
    <thetext>Apologies, the error in JSC isn&apos;t the one listed above, but rather
`SyntaxError: Unexpected escaped characters in keyword token: &apos;def\u0061ult&apos;`.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560607</commentid>
    <comment_count>2</comment_count>
    <who name="Wesley Wigham">wwigham</who>
    <bug_when>2019-08-12 16:56:21 -0700</bug_when>
    <thetext>Relevant test262 issue, since there doesn&apos;t seem to be a test covering it yet: https://github.com/tc39/test262/issues/2285</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1560988</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-08-13 15:36:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/54277270&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1712320</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Shvayka">ashvayka</who>
    <bug_when>2020-12-06 07:38:22 -0800</bug_when>
    <thetext>(In reply to Wesley Wigham from comment #2)
&gt; Relevant test262 issue, since there doesn&apos;t seem to be a test covering it
&gt; yet: https://github.com/tc39/test262/issues/2285

Thank you Wesley for discovering this and filing the issues.
It&apos;s so great there so many projects contributing back to test262!

Yusuke fixed this in r270481.

*** This bug has been marked as a duplicate of bug 219575 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>