Skip to content

Support ES6 Unicode escaped identifiers #941

Closed

Description

@getify

The new Unicode "code point escape" form is also valid for identifiers, such as:

var \u{2B400} = 42;

AFAICT, no one has implemented this part of the grammar yet. As usual, @mathiasbynens has a bunch of great stuff about what makes a valid Unicode identifier in ES6 vs ES5, etc.


BTW:

I'm not sure, but support of this feature may just need to be that such variables are straight up hygenically renamed to something else entirely, because there's (AFAICT) no equivalent way to do those kind of identifier names in pre-ES6.

Activity

  1. sebmck commented on Mar 4, 2015

    @sebmck
    Contributor

    Please request this upstream at acorn.

  2. getify commented on Mar 4, 2015

    @getify
    Author
  3. mathiasbynens commented on Mar 5, 2015

    @mathiasbynens
    Contributor
  4. sebmck commented on Mar 6, 2015

    @sebmck
    Contributor

    Will take a little longer than I hoped since acorn is radically changing it's structure and will require me to rewrite all the custom acorn extensions (ES7, Flow etc). Once acornjs/acorn#216 is merged I should be able to nut through it in a day.

  5. modified the milestone: on Mar 15, 2015
  6. sebmck commented on Mar 18, 2015

    @sebmck
    Contributor

    Fixed in the experimental branch.

  7. getify commented on Mar 18, 2015

    @getify
    Author

    is this going to stay only in "experimental" mode?

  8. sebmck commented on Mar 18, 2015

    @sebmck
    Contributor

    No, the experimental branch is the current unstable branch (terrible name I know).

  9. getify commented on Mar 18, 2015

    @getify
    Author

    ahh, ok, sorry for misunderstanding. thanks! :)

  10. added
    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue
    on Jul 24, 2018
  11. locked as resolved and limited conversation to collaborators on Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions