Files
tubestation/browser/devtools/debugger/test/code_script-eval.js

15 lines
291 B
JavaScript

var bar;
function evalSource() {
eval('bar = function() {\nvar x = 5;\n}');
}
function evalSourceWithSourceURL() {
eval('bar = function() {\nvar x = 6;\n} //# sourceURL=bar.js');
}
function evalSourceWithDebugger() {
eval('bar = function() {\nvar x = 7;\ndebugger; }\n bar();');
}