summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/new/test/mochitest/examples/exceptions.js
blob: 9523f00caf031244944d283ea4410cf449dc3441 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function uncaughtException() {
  throw "unreachable"
}

function caughtError() {
  try {
    throw new Error("error");
  } catch (e) {
    debugger;
  }
}

function caughtException() {
  try {
    throw "reachable";
  } catch (e) {
    debugger;
  }
}