tor-browser

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

decl-lex-restricted-global.js (587B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: sec-globaldeclarationinstantiation
      6 es6id: 15.1.8
      7 description: Lexical declaration collides with existing "restricted global"
      8 info: |
      9  [...]
     10  5. For each name in lexNames, do
     11     [...]
     12     c. Let hasRestrictedGlobal be ? envRec.HasRestrictedGlobalProperty(name).
     13     d. If hasRestrictedGlobal is true, throw a SyntaxError exception.
     14 negative:
     15  phase: runtime
     16  type: SyntaxError
     17 ---*/
     18 
     19 let undefined;