<?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>121541</bug_id>
          
          <creation_ts>2013-09-18 00:11:24 -0700</creation_ts>
          <short_desc>Update identifier syntax to disallow U+2E2F in preparation for ES6</short_desc>
          <delta_ts>2020-03-13 06:53:34 -0700</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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://mathias.html5.org/tests/javascript/identifiers/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Mathias Bynens">mathias</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>claude.pache</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mathias</cc>
    
    <cc>m.goleb+bugzilla</cc>
    
    <cc>oliver</cc>
    
    <cc>syoichi</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>930548</commentid>
    <comment_count>0</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2013-09-18 00:11:24 -0700</bug_when>
    <thetext>TC39 discussed http://esdiscuss.org/topic/backwards-compatibility-and-u-2e2f-in-identifier-s and concluded that we should not deviate from Unicode because we don’t want separate lists from Unicode.

That means `\u2E2F` and `ⸯ` need to throw when used as identifier.

For reference, here’s the same bug ticket for SpiderMonkey: https://bugzilla.mozilla.org/show_bug.cgi?id=917436 And for V8: https://code.google.com/p/v8/issues/detail?id=2892</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>930691</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2013-09-18 11:42:47 -0700</bug_when>
    <thetext>&lt;rdar://problem/15022545&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1074070</commentid>
    <comment_count>2</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2015-03-04 08:31:31 -0800</bug_when>
    <thetext>Some more info &amp; examples of what it means to update to the ES6 grammar for identifiers: https://mathiasbynens.be/notes/javascript-identifiers-es6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1075763</commentid>
    <comment_count>3</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2015-03-09 14:54:12 -0700</bug_when>
    <thetext>Tests based on ES6 and Unicode 5.1.0, i.e. the minimum required Unicode version as per the spec: https://mathias.html5.org/tests/javascript/identifiers/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1274024</commentid>
    <comment_count>4</comment_count>
    <who name="Claude Pache">claude.pache</who>
    <bug_when>2017-02-07 09:18:22 -0800</bug_when>
    <thetext>For reference, the relevant section in the spec is:

https://tc39.github.io/ecma262/#prod-IdentifierName</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1274665</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2017-02-08 17:22:17 -0800</bug_when>
    <thetext>Is this still needed for ES6?yus</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1274774</commentid>
    <comment_count>6</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2017-02-09 00:05:44 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; Is this still needed for ES6?

Yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1629594</commentid>
    <comment_count>7</comment_count>
    <who name="Mathias Bynens">mathias</who>
    <bug_when>2020-03-13 06:53:34 -0700</bug_when>
    <thetext>This seems to have been fixed:

```
$ eshost -sx &apos;var \u2E2F&apos;
#### Chakra

SyntaxError: Invalid character

#### JavaScriptCore

SyntaxError: Invalid unicode escape in identifier: &apos;\u2E2F&apos;

#### SpiderMonkey

SyntaxError: invalid escape sequence:

#### V8, V8 --harmony

SyntaxError: Invalid or unexpected token

#### XS

SyntaxError: invalid character 10
```

…and…

```
$ eshost -sx &apos;var ⸯ&apos;
#### Chakra

SyntaxError: Invalid character

#### JavaScriptCore

SyntaxError: Invalid character &apos;\u2e2f&apos;

#### SpiderMonkey

SyntaxError: illegal character:

#### V8, V8 --harmony

SyntaxError: Invalid or unexpected token

#### XS

SyntaxError: invalid character 11823
```</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>