Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  Frame-onStep-19.js

  Sprache: JAVA
 

// Stepping should ignore nested function declarations.

// Nested functions are hoisted to the top of the function body,
// so technically the first thing that happens when you call the outer function
// is that each inner function is created and bound to a local variable.
// But users don't actually want to see that happen when they're stepping.
// It's super confusing.

load(libdir + "stepping.js");

testStepping(
    `\
      (function() {              // line 1
        let x = 1;               // line 2
        funcb("funcb");          // line 3
        function funcb(msg) {    // line 4
          console.log(msg)
        }
      })                         // line 7
    `,
    [1237]);

// Stopping at the ClassDeclaration on line 8 is fine. For that matter,
// stopping on line 5 wouldn't be so bad if we did it after line 3 and before
// line 8; alas, the actual order of execution is 5, 2, 3, 8... which is too
// confusing.
testStepping(
    `\
      function f() {    //  1
        var x = 0;      //  2
        a();            //  3

        function a() {  //  5
          x += 1;       //  6
        }               //  7
        class Car {}    //  8
        return x;       //  9
      }                 // 10
      f
    `,
    [1238910]);

Messung V0.5 in Prozent
C=71 H=100 G=86

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik