Source code

Revision control

Copy as Markdown

Other Tools

// onNewGlobalObject handlers only fire on enabled Debuggers.
var dbg = new Debugger;
var log;
dbg.onNewGlobalObject = function (global) {
log += 'n';
assertEq(global.seen, undefined);
global.seen = true;
};
log = '';
newGlobal();
assertEq(log, 'n');