Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
arrow-functions
/
arguments-3.js
blob: f4453438c18bd3113a5325ba8d8bc0f873ce0a49 [
file
] [
log
] [
blame
]
// 'arguments' in eval
function
f
()
{
var
g
=
s
=>
eval
(
s
);
assertEq
(
g
(
"arguments"
),
arguments
);
}
f
();
f
(
0
,
1
,
2
);
function
h
()
{
return
s
=>
eval
(
s
);
}
var
result
=
h
(
1
,
2
,
3
,
4
)(
"arguments"
);
assertEq
(
result
.
length
,
4
);
assertEq
(
result
[
3
],
4
);