tor-browser

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

static-strict-strict.js (747B)


      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.2-9-s
      9 description: >
     10    Strict Mode - SyntaxError is thrown when 'static' occurs in strict mode code
     11 info: |
     12    Identifier : IdentifierName but not ReservedWord
     13 
     14    It is a Syntax Error if this phrase is contained in strict mode code and the
     15    StringValue of IdentifierName is: "implements", "interface", "let", "package",
     16    "private", "protected", "public", "static", or "yield".
     17 negative:
     18  phase: parse
     19  type: SyntaxError
     20 flags: [onlyStrict]
     21 ---*/
     22 
     23 $DONOTEVALUATE();
     24 
     25 var static = 1;