Sign in
webkit
/
WebKit
/
6e2a77f8cb18067e3ef1240a3602dba85379b5cd
/
.
/
JSTests
/
stress
/
big-int-no-conversion-to-number.js
blob: 1406128d1dea02b0827f196f5898d11f77dc3e0b [
file
] [
log
] [
blame
]
//@ runBigIntEnabled
let message
;
try
{
1n
+
1
;
}
catch
(
error
)
{
message
=
error
.
message
;
}
if
(
message
!==
"Invalid mix of BigInt and other type in addition."
)
{
throw
new
Error
(
"Error message has changed to something unexpected"
);
}