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

21 lines
365 B
JavaScript

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