tor-browser

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

head-var-bound-names-let.js (469B)


      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 /*---
      5 description: The head's bound names may include "let"
      6 esid: sec-for-in-and-for-of-statements-static-semantics-early-errors
      7 es6id: 13.7.5
      8 flags: [noStrict]
      9 ---*/
     10 
     11 var iterCount = 0;
     12 
     13 for (var let in { attr: null }) {
     14  assert.sameValue(let, 'attr');
     15  iterCount += 1;
     16 }
     17 
     18 assert.sameValue(iterCount, 1);
     19 
     20 reportCompare(0, 0);