test262-automation de9e5de953 [javascriptcore-test262-automation] Updated curation log with latest revision sha's from export and changed files.
sourceRevisionAtLastExport: 205489c4f0 targetRevisionAtLastExport: cab19d71a6
2018-12-10 19:17:47 +00:00

24 lines
390 B
JavaScript

//@ runBigIntEnabled
function assert(a, e) {
if (a !== e) {
throw new Error("Bad!");
}
}
function branchTest(a) {
if (a)
return a;
else
return false;
}
noInline(branchTest);
for (let i = 0; i < 100000; i++) {
assert(branchTest(10n), 10n);
assert(branchTest(1n), 1n);
assert(branchTest(0n), false);
assert(branchTest(-1n), -1n);
}