summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/pause-points.js
blob: 36e98aebb9ff00ba2c5ca093f9110eff8b19059b (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
function funcb(msg) {
  console.log(msg)
}

function a() {return true}
function b() {return false}

function statements() {
  debugger;
  { funcb(); funcb(); }
  console.log("yo"); console.log("yo");
  debugger; debugger;
}

function flow() {
  debugger;
  if (true) console.log("hi")
  var i = 0;
  while(i++ < 2) console.log(i);
}

function sequences() {
  debugger;

  const a = {
    a: 1
  }

  const b = [
    1,
    funcb()
  ]

  funcb({
    a: 1,
  })
}

function expressions() {
  debugger
  a() ? b() : b()
  const y = ` ${funcb()} ${funcb()}`;
}