Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

SSL breakpoint-resume-04.js  Sprache: unbekannt

 
// |jit-test| error:all-jobs-completed-successfully
// Verifiy that a breakpoints force-return queues the promise microtask to run
// in the debuggee's job queue, not the debugger's
// AutoDebuggerJobQueueInterruption.

let g = newGlobal({ newCompartment: true });
g.eval(`
  async function asyncFn(x) {
    await Promise.resolve();
    debugger;
  }
  function enterDebuggee(){}
`);
const dbg = new Debugger(g);

(async function() {
  let it = g.asyncFn();

  // Force-return when the await resumes and steps.
  dbg.onEnterFrame = frame => {
    dbg.onEnterFrame = undefined;
    const bps = frame.script.getPossibleBreakpoints({ line: 4 });
    assertEq(bps.length, 1);
    frame.script.setBreakpoint(bps[0].offset, {
      hit: () => ({ return: "exit" })
    });
  };

  const result = await it;
  assertEq(result, "exit");
  // If execution here is resumed from the debugger's queue, this call will
  // trigger DebuggeeWouldRun exception.
  g.enterDebuggee();


  throw "all-jobs-completed-successfully";
})();

Messung V0.5 in Prozent
C=91 H=92 G=91

[Verzeichnis aufwärts0.8unsichere VerbindungÜbersetzung europäischer Sprachen durch Browser2026-09-28]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126864
#Domains=1897691
 




Impressum  |   | Haftungsausschluß  | Kontakt  | Seitenstruktur  | © 2026 JDD |