Sign in
webkit
/
WebKit
/
0b12fa5591e07a09b635ce1b9a87f0e7c691d55a
/
.
/
JSTests
/
stress
/
varargs-too-few-arguments.js
blob: 36c062a6684735e74e1c0913243ab14e03b05951 [
file
] [
log
] [
blame
]
function
foo
(
a
,
b
)
{
return
[
a
,
b
];
}
function
bar
()
{
return
foo
.
apply
(
null
,
arguments
);
}
noInline
(
bar
);
for
(
var
i
=
0
;
i
<
10000
;
++
i
)
{
var
result
=
bar
(
1
);
if
(
""
+
result
!=
"1,"
)
throw
"Error: bad result: "
+
result
;
}