tor-browser

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

var-env-lower-lex-non-strict.js (478B)


      1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-evaldeclarationinstantiation
      5 description: No variable collision with lexical binding in lower scope
      6 info: |
      7    [...]
      8    5. If strict is false, then
      9       [...]
     10       d. Repeat while thisLex is not the same as varEnv,
     11       [...]
     12 features: [let]
     13 ---*/
     14 
     15 {
     16  let x;
     17  {
     18    (0,eval)('var x;');
     19  }
     20 }
     21 
     22 reportCompare(0, 0);