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

Quelle  Frame-eval-26.js

  Sprache: JAVA
 

// Bug 1026477: Defining functions with D.F.p.eval works, even if there's
// already a non-aliased var binding for the identifier.

var g = newGlobal({newCompartment: true});
var dbg = new Debugger(g);
dbg.onDebuggerStatement = function (frame) {
  frame.older.eval('function f() { }');
};

// When the compiler sees the 'debugger' statement, it marks all variables as
// aliased, but we want to test the case where f is in a stack frame slot, so we
// put the 'debugger' statement in a separate function, and use frame.older to
// get back to the anonymous function's frame.
g.eval('function q() { debugger; }');
assertEq(typeof g.eval('(function () { var f = 42; q(); return f; })();'),
         "function");

Messung V0.5 in Prozent
C=95 H=92 G=93

¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet am  2026-06-05) ¤

*© 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.