summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/script-switching-02.js
blob: 1d93794e7585f9c38ea3862280d8314f572592c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

function secondCall() {
  // This comment is useful: ☺
  debugger;
  function foo() {}
  if (x) {
    foo();
  }
  return 44;
}

var x = true;
// For testing that anonymous functions do not show up in the
// quick open panel browser_dbg-quick-open.js
() => { }
console.log("hi")