OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function makeClosure(n, callback, withScope) | 7 function makeClosure(n, callback, withScope) |
8 { | 8 { |
9 var makeClosureLocalVar = 'local.' + n; | 9 var makeClosureLocalVar = 'local.' + n; |
10 return function innerFunction(x) { | 10 return function innerFunction(x) { |
(...skipping 21 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 function timeout1() | 34 function timeout1() |
35 { | 35 { |
36 var localInTimeout1 = "timeout1"; | 36 var localInTimeout1 = "timeout1"; |
37 function innerTimeout1() | 37 function innerTimeout1() |
38 { | 38 { |
39 var localInInnerTimeout1 = "innerTimeout1"; | 39 var localInInnerTimeout1 = "innerTimeout1"; |
40 setTimeout(timeout2, Number(localInInnerTimeout1 + localInTimeout1) || 0
); | 40 setTimeout(timeout2, Number(localInInnerTimeout1 + localInTimeout1) || 0
); |
41 } | 41 } |
42 makeClosure(1, innerTimeout1)(100); | 42 makeClosure(1, innerTimeout1, { foo: "bar1", __proto__: null })(100); |
43 } | 43 } |
44 | 44 |
45 function timeout2() | 45 function timeout2() |
46 { | 46 { |
47 var localInTimeout2 = "timeout2"; | 47 var localInTimeout2 = "timeout2"; |
48 function innerTimeout2() | 48 function innerTimeout2() |
49 { | 49 { |
50 var localInInnerTimeout2 = "innerTimeout2"; | 50 var localInInnerTimeout2 = "innerTimeout2"; |
51 debugger; | 51 debugger; |
52 } | 52 } |
53 makeClosure(2, innerTimeout2, { foo: "bar", __proto__: null })(200); | 53 makeClosure(2, innerTimeout2, { foo: "bar2", __proto__: null })(200); |
54 } | 54 } |
55 | 55 |
56 function test() | 56 function test() |
57 { | 57 { |
58 var maxAsyncCallStackDepth = 4; | 58 var maxAsyncCallStackDepth = 4; |
59 | 59 |
60 InspectorTest.setQuiet(true); | 60 InspectorTest.setQuiet(true); |
61 InspectorTest.startDebuggerTest(step1); | 61 InspectorTest.startDebuggerTest(step1); |
62 | 62 |
63 function step1() | 63 function step1() |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 </script> | 123 </script> |
124 </head> | 124 </head> |
125 | 125 |
126 <body onload="runTest()"> | 126 <body onload="runTest()"> |
127 <input type='button' onclick='testFunction()' value='Test'/> | 127 <input type='button' onclick='testFunction()' value='Test'/> |
128 <p> | 128 <p> |
129 Test that sections representing scopes are expandable and contain correct data f
or async call frames. | 129 Test that sections representing scopes are expandable and contain correct data f
or async call frames. |
130 </p> | 130 </p> |
131 </body> | 131 </body> |
132 </html> | 132 </html> |
OLD | NEW |