1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/closures/t020.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +actual = ''; 1.5 +expected = '0,0,1,1,2,2,3,3,'; 1.6 + 1.7 +let(f = function() { 1.8 + for (let x = 0; x < 4; ++x) { 1.9 + (function() { 1.10 + for (let y = 0; y < 2; ++y) { 1.11 + appendToActual(x); 1.12 + } 1.13 + })() 1.14 + } 1.15 +}) { 1.16 + f(0) 1.17 +} 1.18 + 1.19 + 1.20 +assertEq(actual, expected)