Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / closures / flat-closure-8.js
1 actual = '';
2 expected = 'nocrash,';
3
4 function b(a) {
5 }
6
7 function f(y) {
8   function q() { b(y); };
9   q();
10 }
11
12 for (var i = 0; i < 1000; ++i) {
13   f(i);
14  }
15
16 appendToActual('nocrash')
17
18
19 assertEq(actual, expected)