tor-browser

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

let-outer-inner-let-bindings.js (500B)


      1 // Copyright (C) 2011 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 13.1
      5 description: >
      6    outer let binding unchanged by for-loop let binding
      7 ---*/
      8 //
      9 
     10 let x = "outer_x";
     11 let y = "outer_y";
     12 
     13 for (let x = "inner_x", i = 0; i < 1; i++) {
     14  let y = "inner_y";
     15 
     16  assert.sameValue(x, "inner_x");
     17  assert.sameValue(y, "inner_y");
     18 }
     19 assert.sameValue(x, "outer_x");
     20 assert.sameValue(y, "outer_y");
     21 
     22 
     23 reportCompare(0, 0);