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


SSL test_stepping-09.js   Sprache: JAVA

 
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */


"use strict";

/**
 * Check that step out stops at the end of the parent if it fails to stop
 * anywhere else. Bug 1504358.
 */


add_task(
  threadFrontTest(async ({ threadFront, debuggee }) => {
    dumpn("Evaluating test code and waiting for first debugger statement");
    const dbgStmt = java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
      () => evaluateTestCode(debuggee),
      threadFront
    );
    equal(
      dbgStmt.frame.where.line,
      2,
      "Should be at debugger statement on line 2"
    );

    dumpn("Step out of inner and into outer");
    const step2 = await stepOut(threadFront);
    // The bug was that we'd step right past the end of the function and never pause.
    equal(step2.frame.where.line, 2);
    equal(step2.frame.where.column, 31);
    deepEqual(step2.why.frameFinished.return, { type: "undefined" });
  })
);

function evaluateTestCode(debuggee) {
  // By placing the inner and outer on the same line, this triggers the server's
  // logic to skip steps for these functions, meaning that onPop is the only
  // thing that will cause it to pop.
  Cu.evalInSandbox(
    `
    function outer(){ inner(); return 42; } function inner(){ debugger; }
    outer();
    `,
    debuggee,
    "1.8",
    "test_stepping-09-test-code.js",
    1
  );
}

100%


¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© 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 ist noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge
 




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