diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/closures/bug496922.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/closures/bug496922.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,20 @@ +actual = ''; +expected = '0,0,1,1,2,2,3,3,'; + +v = 0 +let( +f = function() { + for (let x = 0; x < 4; ++x) { + v >> x; + (function() { + for (let y = 0; y < 2; ++y) { + appendToActual(x) + } + })() + } +}) { (function() {})() + f(v) +} + + +assertEq(actual, expected)