Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[es6] Allow \u{...} in identifier. #2406

Open
nicolo-ribaudo opened this issue May 19, 2015 · 0 comments
Open

[es6] Allow \u{...} in identifier. #2406

nicolo-ribaudo opened this issue May 19, 2015 · 0 comments

Comments

@nicolo-ribaudo
Copy link
Contributor

Example:

/*jshint esnext: true */
let \u{102C0};

Spec:

(111411110 = 10FFFF16)

nicolo-ribaudo added a commit to nicolo-ribaudo/jshint that referenced this issue May 23, 2015
In ECMAScript 6 has been introduced the \u{...} syntax (valid both in
identifiers and strings).
Astral unicode points are now valid.

Examples:
  var \u{65}; // var \u0061;
  var \u{102A7}; // astral code point
  var 𐊧; // 𐊧 is U+102A7
  var a = "\u{65}"; // var a = "\u0065";
  var a = "\u{102A7}"; // var a = "\uD800\uDEA7";

Closes jshint#2406
nicolo-ribaudo added a commit to nicolo-ribaudo/jshint that referenced this issue Jun 14, 2015
In ECMAScript 6 has been introduced the \u{...} syntax (valid both in
identifiers and strings).
Astral unicode points are now valid.

Examples:
  var \u{65}; // var \u0061;
  var \u{102A7}; // astral code point
  var 𐊧; // 𐊧 is U+102A7
  var a = "\u{65}"; // var a = "\u0065";
  var a = "\u{102A7}"; // var a = "\uD800\uDEA7";

Closes jshint#2406
nicolo-ribaudo added a commit to nicolo-ribaudo/jshint that referenced this issue Oct 4, 2015
In ECMAScript 6 has been introduced the \u{...} syntax (valid both in
identifiers and strings).
Astral unicode points are now valid.

Examples:
  var \u{65}; // var \u0061;
  var \u{102A7}; // astral code point
  var 𐊧; // 𐊧 is U+102A7
  var a = "\u{65}"; // var a = "\u0065";
  var a = "\u{102A7}"; // var a = "\uD800\uDEA7";

Closes jshint#2406
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants