/* * For eval and Function constructors, Script.prototype.sourceStart and * Script.prototype.sourceLength should comprise the entire script (excluding * arguments in the case of Function constructors)
*/
let g = newGlobal({newCompartment: true});
let dbg = new Debugger(g);
var count = 0; function test(string, range) {
dbg.onNewScript = function (script) {
++count; if (count % 2 == 0) {
assertEq(script.sourceStart, range[0]);
assertEq(script.sourceLength, range[1]);
}
}
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.