js/xpconnect/tests/mochitest/file_exnstack.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/xpconnect/tests/mochitest/file_exnstack.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <script type="application/javascript">
     1.8 +    window.doThrow = function(other) {
     1.9 +      if (other)
    1.10 +        throwAsOuter(other);
    1.11 +      else
    1.12 +        throwAsInner();
    1.13 +    }
    1.14 +
    1.15 +    function throwAsInner() {
    1.16 +      throw Error('look at me go!');
    1.17 +    }
    1.18 +
    1.19 +    function throwAsOuter(other) {
    1.20 +      other.doThrow(null);
    1.21 +    }
    1.22 +  </script>
    1.23 +</head>
    1.24 +<body>
    1.25 +</body>
    1.26 +</html>

mercurial