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

Quelle  bug1814020.js   Sprache: JAVA

 
const dbg = newGlobal({ sameZoneAs: this }).Debugger(this);

async function* inspectingGenerator() {
    await undefined;

    const frame = dbg.getNewestFrame();
    const asyncPromise = frame.asyncPromise;
    assertEq(asyncPromise.getPromiseReactions().length, 0);
}

async function* emptyGenerator() {}

const gen = inspectingGenerator();
const inspectingGenPromise = gen.next();

const emptyGen = emptyGenerator();
// Close generator.
emptyGen.next();

// Creates a reaction record on the inspectingGenPromise which points to the
// closed emptyGen generator.
emptyGen.return(inspectingGenPromise);

// Execute the inspectingGenerator() code after `await`, which gets the
// promise reactions (potentially including the closed emptyGen generator)
drainJobQueue();

Messung V0.5
C=88 H=94 G=90

¤ Dauer der Verarbeitung: 0.14 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.