Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

2.1.52 [ECMA-262/5] Section B.1.2, String Literals

V0041:

The specification states:

 OctalEscapeSequence ::
    OctalDigit [lookahead Ï DecimalDigit] 
    ZeroToThree OctalDigit [lookahead Ï DecimalDigit] 
    FourToSeven OctalDigit 
    ZeroToThree OctalDigit OctalDigit

IE9 Mode, IE10 Mode, IE11 Mode, and EdgeHTML Mode (All Versions)

The syntax of the OctalEscapeSequence literal can be extended only as follows, with the lookahead element characterized with respect to the OctalDigit set:

 OctalEscapeSequence ::
    OctalDigit [lookahead Ï OctalDigit] 
    ZeroToThree OctalDigit [lookahead Ï OctalDigit] 
    FourToSeven OctalDigit 
    ZeroToThree OctalDigit OctalDigit

V0042:

The specification states:

§   The CV of OctalEscapeSequence :: OctalDigit [lookahead ∉ DecimalDigit] is the character whose code unit value is the MV of the OctalDigit.
§   The CV of OctalEscapeSequence :: ZeroToThree OctalDigit [lookahead ∉ DecimalDigit] is the character whose code unit value is (8 times the MV of the ZeroToThree) plus the MV of the OctalDigit.

IE9 Mode, IE10 Mode, IE11 Mode, and EdgeHTML Mode (All Versions)

The semantics of the OctalEscapeSequence literal can be extended only as follows, with the lookahead element characterized with respect to the OctalDigit set:

  • The character value (CV) of OctalEscapeSequence :: OctalDigit [lookahead ∉ OctalDigit] is the character whose code unit value is the mathematical value (MV) of the OctalDigit element.

  • The CV of OctalEscapeSequence :: ZeroToThree OctalDigit [lookahead ∉ OctalDigit] is the character whose code unit value is 8 times the MV of the ZeroToThree element plus the MV of the OctalDigit element.

Show:
© 2015 Microsoft