Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/basic/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 482 B image not shown  

Quelle  testBug501690.js   Sprache: JAVA

 
function testBug501690() {
    // Property cache assertion when 3 objects along a prototype chain have the same shape.
    function B(){}
    B.prototype = {x: 123};

    function D(){}
    D.prototype = new B;
    D.prototype.x = 1;    // [1] shapeOf(B.prototype) == shapeOf(D.prototype)

    arr = [new D, new D, new D, D.prototype];  // [2] all the same shape
    for (var i = 0; i < 4; i++)
        assertEq(arr[i].x, 1);  // same kshape [2], same vshape [1]
}
testBug501690();

Messung V0.5
C=91 H=89 G=89

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.