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 811 B image not shown  

Quelle  bug-1477084.js   Sprache: JAVA

 
// Don't assert trying to force return before the initial yield of an async function.

var g = newGlobal({newCompartment: true});
g.parent = this;
g.parentExc = new Error("pants");
g.eval(`
  var dbg = new Debugger;
  var pw = dbg.addDebuggee(parent);
  var hits = 0;
  dbg.onExceptionUnwind = function (frame) {
    dbg.onExceptionUnwind = undefined;
    return {return: undefined};
  };
  dbg.uncaughtExceptionHook = exc => {
    hits++;
    assertEq(exc instanceof TypeError, true);
    assertEq(/force return.*before the initial yield/.test(exc.message), true);
    return {throw: pw.makeDebuggeeValue(parentExc)};
  };
`);

async function* method({ x: callbackfn = unresolvableReference }) {}
try {
  method();
catch (exc) {
  g.dbg.enabled = false;
  assertEq(exc, g.parentExc);
}

assertEq(g.hits, 1);

Messung V0.5
C=92 H=94 G=92

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