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
/
arguments
/
args2d.js
1
actual = '';
2
expected = 'g 0 0 0,g 1 2 1,g 2 4 4,g 3 6 9,g 4 8 16,';
3
4
function g(x, y, z) {
5
appendToActual('g ' + x + ' ' + y + ' ' + z);
6
}
7
8
function f() {
9
g.apply(this, arguments);
10
}
11
12
for (var i = 0; i < 5; ++i) {
13
f(i, i*2, i*i);
14
}
15
16
17
assertEq(actual, expected)