summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/doc-merge-scopes.html
blob: 905d4fdfc57f8f86f8c7ee09d3bac29cc652eb26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script>
function run() {
  setTimeout(first);
  setTimeout(second);
  setTimeout(third);
}

function first(x) {
  let y = 0;
  var z = 1;
  debugger;
}

function second(x) {
  if (second) {
    let y = 0;
    debugger;
  }
}

function third(x) {
  let y = 1;
  if (y) {
    let z = 0;
    var v = 2;
    debugger;
  }
}
</script>