tor-browser

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

head-var-bound-names-in-stmt.js (415B)


      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 description: The body may re-declare variables declared in the head
      5 esid: sec-for-statement
      6 es6id: 13.7.4
      7 ---*/
      8 
      9 var iterCount = 0;
     10 var first = true;
     11 
     12 for (var x; first; first = false) {
     13  var x;
     14  iterCount += 1;
     15 }
     16 
     17 assert.sameValue(iterCount, 1);
     18 
     19 reportCompare(0, 0);