tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

u-invalid-legacy-octal-escape.js (689B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: sec-patterns
      6 es6id: 21.2.1
      7 description: Legacy Octal Escape Sequence not supported with `u` flag
      8 info: |
      9    The `u` flag precludes the use of LegacyOctalEscapeSequence irrespective
     10    of the presence of Annex B extensions.
     11 
     12    CharacterEscape [U] ::
     13        ControlEscape
     14        c ControlLetter
     15        0[lookahead ∉ DecimalDigit]
     16        HexEscapeSequence
     17        RegExpUnicodeEscapeSequence[?U]
     18        IdentityEscape[?U]
     19 negative:
     20  phase: parse
     21  type: SyntaxError
     22 ---*/
     23 
     24 $DONOTEVALUATE();
     25 
     26 /\1/u;