blob: 1afa8108f1716c3c63f84b37e13f9626ef1834fe [file] [log] [blame]
//@ if $buildType == "debug" or $memoryLimited then skip else runBigIntEnabled end
function assert(a) {
if (!a)
throw new Error("Bad");
}
var longStr = "f";
for (var i = 0; i < 30; ++i)
longStr = longStr + longStr;
let sub = longStr.substring(0, longStr.length - 4)
let sNumber = "0x" + longStr + sub + "f";
try {
BigInt(sNumber);
assert(false);
} catch(e) {
assert(e.message == "Out of memory")
}