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
/
t003.js
1
actual = '';
2
expected = '54,54,54,';
3
4
function k(a, b, f_arg, c) {
5
for (var i = 0; i < 5; ++i) {
6
f_arg(i + a);
7
}
8
}
9
10
function t(a, b) {
11
var x = 1;
12
k(50, 100, function (i) { x = i; }, 200);
13
appendToActual(x);
14
}
15
16
t(1);
17
t(2, 3);
18
t(4, 5, 6);
19
20
21
assertEq(actual, expected)