tor-browser

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

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


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (C) 2020 Sony Interactive Entertainment Inc. All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 /*---
      6 esid: sec-literals-string-literals
      7 description: LegacyOctalEscapeSequence is not enabled in strict mode code - 9
      8 info: |
      9  EscapeSequence ::
     10    CharacterEscapeSequence
     11    LegacyOctalEscapeSequence
     12    NonOctalDecimalEscapeSequence
     13    HexEscapeSequence
     14    UnicodeEscapeSequence
     15 
     16  NonOctalDecimalEscapeSequence :: one of
     17    8 9
     18 
     19  ## 12.8.4.1 Static Semantics: Early Errors
     20 
     21  EscapeSequence :: NonOctalDecimalEscapeSequence
     22 
     23  - It is a Syntax Error if the source code matching this production is strict
     24    mode code.
     25 flags: [onlyStrict]
     26 negative:
     27  phase: parse
     28  type: SyntaxError
     29 ---*/
     30 
     31 $DONOTEVALUATE();
     32 
     33 '\9';