summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/doc-watchpoints.html
blob: eb21d7c8f4f1ac5ee61ddd59610e943b40f959b4 (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
<!DOCTYPE html>
<html>
  <script>
    function getB(obj) {
      debugger;
      obj.b;
    }
  </script>
  <script>
    const obj = { a: { b: 2, c: 3 }, b: 2 };
    debugger;
    obj.b = 3;

    obj.a.b = 3;
    obj.a.b = 4;

    console.log(obj.b);
    obj.b = 4;
    obj.b;
    obj.b;
    debugger;

    getB(obj);
    debugger;
    obj.b;
  </script>

  <body>
    Hello World!
  </body>
</html>