|
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="start()">Click me!</button> |
|
13 |
|
14 <script type="text/javascript"> |
|
15 function test(aArg, bArg, cArg, dArg, eArg, fArg) { |
|
16 var a = 1; |
|
17 var b = { a: a }; |
|
18 var c = { a: 1, b: "beta", c: 3, d: false, e: null, f: fArg }; |
|
19 var myVar = { |
|
20 _prop: 42, |
|
21 get prop() { return this._prop; }, |
|
22 set prop(val) { this._prop = val; } |
|
23 }; |
|
24 debugger; |
|
25 } |
|
26 |
|
27 function start() { |
|
28 var a = { a: 1, b: "beta", c: 3, d: false, e: null, f: undefined }; |
|
29 var e = eval("test(a, 'beta', 3, false, null);"); |
|
30 } |
|
31 |
|
32 var button = document.querySelector("button"); |
|
33 var buttonAsProto = Object.create(button); |
|
34 </script> |
|
35 </body> |
|
36 |
|
37 </html> |