Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!-- Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ -->
3 <!doctype html>
5 <html>
6 <head>
7 <meta charset="utf-8"/>
8 <title>Debugger test page</title>
9 </head>
11 <body>
12 <button onclick="test(10)">Click me!</button>
14 <script type="text/javascript">
15 function test(aNumber) {
16 var a, obj = { alpha: 1, beta: 2 };
17 var r = aNumber;
18 with (Math) {
19 a = PI * r * r;
20 with (obj) {
21 var foo = beta * PI;
22 debugger;
23 }
24 }
25 }
26 </script>
27 </body>
29 </html>