Skip to content

Error in Appendix A - Smaller Changes - Unicode code point escapes #457

Description

@ronen-e

Where:
Line 91 in Appendix A - Other changes

// Valid in ECMAScript 5 and 6
var \u{61} = "abc";

console.log(\u{61});      // "abc"

// equivalent to:
 console.log(a);          // "abc"

Reason:
the text "Valid in ECMAScript 5 and 6" is incorrect
Code point escapes were added to JavaScript in ECMAScript 2015 (ES6).
The example is not valid for ES5

Suggested Fix:

// Valid in ECMAScript 6
var \u{61} = "abc";

console.log(\u{61});      // "abc"

// equivalent to:
 console.log(a);          // "abc"

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions