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
/
pic
/
bug595706.js
1
function f(useArg2, arg2, expect) {
2
var args = arguments;
3
if (useArg2)
4
args = arg2;
5
6
print(args)
7
assertEq(args.length, expect);
8
}
9
10
// Generate a PIC for arguments.
11
f(false, 0, 3);
12
f(false, 0, 3);
13
f(false, 0, 3);
14
15
// Now call it with a slow array.
16
var a = [1, 2, 3];
17
a.x = 9;
18
19
f(true, a, 3);