Sha256: 4e57b5f586bbe586b73470c6e4fd4c96a15aa71ec3280532677a41fcf81f797d

Contents?: true

Size: 238 Bytes

Versions: 11

Compression:

Stored size: 238 Bytes

Contents

"use strict";

// v8 --harmony correctly prints 9 9 9:
// note that the loop terminates

var arr = [];
for (let x in [0,1,2]) {
    let x = 9;
    arr.push(function() {
        console.log(x);
    });
}
arr.forEach(function(f) { f(); });

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
ilog-0.4.1 node_modules/defs/other/v8-for-in-scope-2.js
ilog-0.4.0 node_modules/defs/other/v8-for-in-scope-2.js
ilog-0.3.3 node_modules/defs/other/v8-for-in-scope-2.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/defs/other/v8-for-in-scope-2.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/defs/other/v8-for-in-scope-2.js
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/defs/other/v8-for-in-scope-2.js
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/defs/other/v8-for-in-scope-2.js
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/defs/other/v8-for-in-scope-2.js
gulp_assets-1.0.0.pre.5 template/node_modules/babel-core/node_modules/regenerator/node_modules/defs/other/v8-for-in-scope-2.js
gulp_assets-1.0.0.pre.4 template/node_modules/babel-core/node_modules/regenerator/node_modules/defs/other/v8-for-in-scope-2.js
gulp_assets-1.0.0.pre.3 template/node_modules/babel-core/node_modules/regenerator/node_modules/defs/other/v8-for-in-scope-2.js