Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / closures / t006.js
1 actual = '';
2 expected = '2,';
3
4 function k(f_arg) { 
5   (function() {
6     for (var i = 0; i < 10; ++i) {
7       f_arg();
8     }
9   })();
10 }
11
12 function t() {
13   var x = 1;
14   k(function () { x = 2; });
15   appendToActual(x);
16 }
17
18 t();
19
20
21
22 assertEq(actual, expected)