Sign in
webkit
/
WebKit
/
5c46bef7ab98d4e8242fd1cdbd4a8339e4d4801f
/
.
/
JSTests
/
stress
/
big-int-spec-to-primitive.js
blob: 37f8790d68ce4eeed927f951fbd7faaad44d3363 [
file
] [
log
] [
blame
]
//@ runBigIntEnabled
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"
);
}