Share via


2.1.91 [ECMA-262/6] Section 21.2.1.1 Static Semantics: Early Errors

V0142: When the mathematical value of HexDigits is above 0x10FFFF, the \u{...} is not treated as a Unicode code point

The specification states:

 21.2.1.1 Static Semantics: Early Errors
  
     RegExpUnicodeEscapeSequence :: u { HexDigits }
  
         • It is a Syntax Error if the MV of HexDigits > 0x10FFFF.

EdgeHTML Mode (All versions)

When the mathematical value (MV) of HexDigits is above 0x10FFFF (decimal 1114111), the \u{...} is treated as a regular string, not as a Unicode code point, and no Syntax Error exception is thrown.