tor-browser

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

legacy-non-octal-escape-sequence-strict-strict.js (761B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (C) 2017 Kevin Gibbons. All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 /*---
      6 esid: sec-template-literal-lexical-components
      7 description: LegacyOctalEscapeSequence is not available in template literals
      8 info: |
      9  TemplateCharacter ::
     10    $ [lookahead ≠ {]
     11    \ TemplateEscapeSequence
     12    \ NotEscapeSequence
     13    LineContinuation
     14    LineTerminatorSequence
     15    SourceCharacter but not one of ` or \ or $ or LineTerminator
     16  TemplateEscapeSequence ::
     17    CharacterEscapeSequence
     18    0 [lookahead ∉ DecimalDigit]
     19    HexEscapeSequence
     20    UnicodeEscapeSequence
     21 flags: [onlyStrict]
     22 negative:
     23  phase: parse
     24  type: SyntaxError
     25 ---*/
     26 
     27 $DONOTEVALUATE();
     28 
     29 '\08';