Sign in
webkit
/
WebKit
/
14cb98a360e661c1b39a648e8ccc3be2e2757789
/
.
/
JSTests
/
stress
/
big-int-spec-to-primitive.js
blob: d886cad0dfa6623ca3d7c2a5a06819a6f8c24e66 [
file
] [
log
] [
blame
]
function
assert
(
a
)
{
if
(!
a
)
throw
new
Error
(
"Bad assertion"
);
}
function
foo
(
input
)
{
let a
=
""
;
return
""
+
input
+
""
;
}
noInline
(
foo
);
for
(
let i
=
0
;
i
<
10000
;
i
++)
{
assert
(
foo
(
10n
)
===
"10"
);
}