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
/
t013.js
1
actual = '';
2
expected = '0,0,0,0,0,0,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,';
3
4
function g(a) {
5
a();
6
}
7
8
function f(y) {
9
for (var i = 0; i < 7; ++i) {
10
var q;
11
q = function() { appendToActual(y); };
12
g(q);
13
}
14
}
15
16
for (var i = 0; i < 5; ++i) {
17
f(i);
18
}
19
20
21
assertEq(actual, expected)