summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug-1263355-39.js
blob: 85d0f8aaefa9856aa6b2f3b9e3aad36ce4101d07 (plain)
1
2
3
4
5
6
7
8
function f() {
  var init, first;
  for (let i = (init = () => i = 1, 0); (first = () => i, i) < 0; ++i);
  assertEq(init(), 1);
  assertEq(first(), 0);
}

f();