1 2 3 4 5 6 7 8 9 10 11 12 13 14
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();"); }