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