browser/devtools/debugger/test/doc_step-out.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/debugger/test/doc_step-out.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +<!-- Any copyright is dedicated to the Public Domain.
     1.5 +     http://creativecommons.org/publicdomain/zero/1.0/ -->
     1.6 +<!doctype html>
     1.7 +
     1.8 +<html>
     1.9 +  <head>
    1.10 +    <meta charset="utf-8"/>
    1.11 +    <title>Debugger test page</title>
    1.12 +  </head>
    1.13 +
    1.14 +  <body>
    1.15 +    <button id="return">Return me!</button>
    1.16 +    <button id="throw">Throw me!</button>
    1.17 +
    1.18 +    <script type="text/javascript">
    1.19 +      function normal(aArg) {
    1.20 +        debugger;
    1.21 +        var r = 10;
    1.22 +        return r;
    1.23 +      }
    1.24 +
    1.25 +      function error(aArg) {
    1.26 +        function inner(aArg) {
    1.27 +          debugger;
    1.28 +          var r = 10;
    1.29 +          throw "boom";
    1.30 +          return r;
    1.31 +        }
    1.32 +        try {
    1.33 +          inner(aArg);
    1.34 +        } catch (e) {}
    1.35 +      }
    1.36 +
    1.37 +      var normalBtn = document.getElementById("return");
    1.38 +      normalBtn.addEventListener("click", normal, false);
    1.39 +
    1.40 +      var throwBtn = document.getElementById("throw");
    1.41 +      throwBtn.addEventListener("click", error, false);
    1.42 +    </script>
    1.43 +  </body>
    1.44 +
    1.45 +</html>

mercurial