try {
a = {}; for (b = 0; b < 24; b++)
a += a; Function(a, a, a);
assertEq(true, false, "allocation overflow expected");
} catch (e) { if (getBuildConfiguration("pointer-byte-size") == 4) { const msg = e + "";
assertEq(msg.includes("out of memory") || msg.includes("InternalError: allocation size overflow"), true);
} // else on 64-bit, it will be a SyntaxError for invalid code.
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.