summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/xpcshell/stepping.js
blob: 2134bea38d3b675db5335c4bad9f1063d1dd64ed (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
"use strict";
/* exported global arithmetic composition chaining nested */

const obj = { b };

function a() {
  return obj;
}

function b() {
  return 2;
}

function arithmetic() {
  debugger;
  a() + b();
}

function composition() {
  debugger;
  b(a());
}

function chaining() {
  debugger;
  a().b();
}

function c() {
  return b();
}

function nested() {
  debugger;
  c();
}