tor-browser

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

legacy-octal-integer-strict-strict.js (905B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 /*---
      6 esid: sec-literals-numeric-literals
      7 description: LegacyOctalIntegerLiteral is not enabled in strict mode code
      8 info: |
      9    NumericLiteral ::
     10      DecimalLiteral
     11      BinaryIntegerLiteral
     12      OctalIntegerLiteral
     13      HexIntegerLiteral
     14      LegacyOctalIntegerLiteral
     15 
     16    LegacyOctalIntegerLiteral ::
     17      0 OctalDigit
     18      LegacyOctalIntegerLiteral OctalDigit
     19 
     20    ## 12.8.3.1 Static Semantics: Early Errors
     21 
     22    NumericLiteral :: LegacyOctalIntegerLiteral
     23    DecimalIntegerLiteral :: NonOctalDecimalIntegerLiteral
     24 
     25    - It is a Syntax Error if the source code matching this production is
     26      strict mode code.
     27 flags: [onlyStrict]
     28 negative:
     29  phase: parse
     30  type: SyntaxError
     31 ---*/
     32 
     33 $DONOTEVALUATE();
     34 
     35 00;