test262/implementation-contributed/javascriptcore/stress/value-div-fixup-int32-big-int.js
test262-automation 32a39daf43 [javascriptcore-test262-automation] Updated curation log with latest revision sha's from export and changed files.
sourceRevisionAtLastExport: 2b233fa3c0 targetRevisionAtLastExport: 8e3c6d0484
2018-12-15 19:17:28 +00:00

30 lines
384 B
JavaScript

//@ runBigIntEnabled
function assert(a, e) {
if (a !== e)
throw new Error("Bad!");
}
function foo() {
let c;
do {
let a = 2;
let b = 3n;
for (let i = 0; i < 10000; i++) {
c = i;
}
c = a / b;
} while(true);
return c;
}
try {
foo();
} catch(e) {
assert(e instanceof TypeError, true);
}