summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/closures/flat-closure-8.js
blob: fb719b0f2ab86662e4f497651b7159008f19fa64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
actual = '';
expected = 'nocrash,';

function b(a) {
}

function f(y) {
  function q() { b(y); };
  q();
}

for (var i = 0; i < 1000; ++i) {
  f(i);
 }

appendToActual('nocrash')


assertEq(actual, expected)