Sign in
webkit
/
WebKit
/
7c2d2b06cff0bde1c85f11402729e2b90317522d
/
.
/
JSTests
/
stress
/
bigint-zero-canonicalized.js
blob: 6e4ef8afd74ab6a32387e5019f2f20d1e50c158a [
file
] [
log
] [
blame
]
function
shouldBe
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
throw
new
Error
(
'bad value: '
+
actual
);
}
var
zero1
=
createHeapBigInt
(
0n
);
var
zero2
=
createHeapBigInt
(-
1n
);
zero2
++;
shouldBe
(
zero1
===
zero2
,
true
);