Sign in
webkit
/
WebKit
/
87a7a7c1c7f13f5553e380a9e21b89f73f375cdc
/
.
/
JSTests
/
stress
/
big-int-as-key.js
blob: eeae472f70629cabff46aeb661b57917ba221e8b [
file
] [
log
] [
blame
]
//@ runBigIntEnabled
function
assert
(
a
)
{
if
(!
a
)
throw
new
Error
(
"Bad assertion"
);
}
let o
=
{};
let n
=
BigInt
(
0
);
o
[
n
]
=
"foo"
;
assert
(
o
[
n
]
===
"foo"
);
assert
(
o
[
"0"
]
===
"foo"
);