// Check handling of columns near the limit of our ability to represent them. // (This is hardly thorough, but since web content can't set column numbers, // it's probably not worth it to be thorough.) const maxColumn = Math.pow(2, 30) - 2;
assertEq(evaluate("saveStack().column", { columnNumber: maxColumn }),
maxColumn);
// Check the saturation behavior when we reach the limit of the column // representation.
assertEq(evaluate(" saveStack().column", { columnNumber: maxColumn }),
maxColumn + 1);
// Gathering source text for inclusion in error messages should not try to reach // outside the buffer to find the start of the source line. The below should // report the error without crashing.
assertThrowsInstanceOf(() => evaluate("function x(y,y) { 'use strict'; } x()",
{ columnNumber: 10 }),
SyntaxError);
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
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.