Sign in
webkit
/
WebKit
/
60c3f717a9141a0f8afd6e8437d26c6404e4424c
/
.
/
JSTests
/
stress
/
big-int-as-key.js
blob: 8e1c75ab7d431c6529773f1e2161579b18ae6046 [
file
] [
log
] [
blame
]
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"
);