summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/code_script-eval.js
blob: 0d7ceba66ed6618f197308bd8fda6bb01d448efc (plain)
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();");
}