Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 523 B image not shown  

Quelle  bug1782558-veclen.js

  Sprache: JAVA
 

// |jit-test| skip-if: getBuildConfiguration("pointer-byte-size") > 4 || getBuildConfiguration("android")

// On 64-bit, this will allocate 2G temporary strings for keys while
// stringifying the Array, which takes a rather long time and doesn't have the
// potential of the problematic overflowing anyway.

try {
    let x = [];
    x.length = Math.pow(232) - 1;
    x + 1;
    assertEq(truefalse"overflow expected");
catch (e) {
    assertEq((e + "").includes("InternalError: allocation size overflow"), true);
}

Messung V0.5 in Prozent
C=91 H=77 G=83

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-10) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.