/* * Script.prototype.source should be the same object for both the top-level * script and the script of functions accessed as debuggee values on the global
*/
let g = newGlobal({newCompartment: true});
let dbg = new Debugger();
let gw = dbg.addDebuggee(g);
let count = 0;
dbg.onDebuggerStatement = function (frame) {
++count;
assertEq(frame.script.source, gw.makeDebuggeeValue(g.f).script.source);
}
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.