Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
spread-call-recursion.js
blob: 58450d8852641f0b2ed9b5a2ba83be8ff9d8baa2 [
file
] [
log
] [
blame
]
let a
=
[];
a
.
length
=
30
;
function
check
(
f
)
{
try
{
f
();
}
catch
(
e
)
{
assertEq
(
e
.
message
,
"too much recursion"
);
}
}
let f
=
function
()
f
(...
a
)
+
1
;
let g
=
()
=>
g
(...
a
)
+
1
;
let h
=
function
()
new
h
(...
a
)
+
1
;
check
(
f
);
check
(
g
);
check
(
h
);