tor-browser

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

static-strict-escaped-strict.js (828B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (c) 2012 Ecma International.  All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 
      6 /*---
      7 esid: sec-identifiers-static-semantics-early-errors
      8 es5id: 7.6.1-25-s
      9 description: >
     10    7.6 - SyntaxError expected: reserved words used as Identifier
     11    Names in UTF8: \u0073\u0074\u0061\u0074\u0069\u0063 (static)
     12 info: |
     13    Identifier : IdentifierName but not ReservedWord
     14 
     15    It is a Syntax Error if this phrase is contained in strict mode code and the
     16    StringValue of IdentifierName is: "implements", "interface", "let", "package",
     17    "private", "protected", "public", "static", or "yield".
     18 negative:
     19  phase: parse
     20  type: SyntaxError
     21 flags: [onlyStrict]
     22 ---*/
     23 
     24 $DONOTEVALUATE();
     25 
     26 var \u0073\u0074\u0061\u0074\u0069\u0063 = 123;