Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/debug/   (Firefox Browser 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 in Prozent
C=91 H=85 G=87

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