|
1 <!-- Any copyright is dedicated to the Public Domain. |
|
2 http://creativecommons.org/publicdomain/zero/1.0/ --> |
|
3 <!doctype html> |
|
4 |
|
5 <html> |
|
6 <head> |
|
7 <meta charset="utf-8"/> |
|
8 <title>Debugger test page</title> |
|
9 </head> |
|
10 |
|
11 <body> |
|
12 <button onclick="test(10)">Click me!</button> |
|
13 |
|
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> |
|
28 |
|
29 </html> |