projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
closures
/
t031.js
1
actual = '';
2
expected = '4,4,4,';
3
4
function k(f_arg) {
5
for (var i = 0; i < 5; ++i) {
6
f_arg(i);
7
}
8
}
9
10
function t() {
11
var x = 1;
12
k(function (i) { x = i; });
13
appendToActual(x);
14
}
15
16
t();
17
t();
18
t();
19
20
21
assertEq(actual, expected)