OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 InspectorTest.addScript(` | 5 let {session, contextGroup, Protocol} = InspectorTest.start('Tests that accessin
g no longer valid call frames returns an error'); |
| 6 |
| 7 contextGroup.addScript(` |
6 function testFunction() | 8 function testFunction() |
7 { | 9 { |
8 debugger; | 10 debugger; |
9 } | 11 } |
10 //# sourceURL=foo.js`); | 12 //# sourceURL=foo.js`); |
11 | 13 |
12 Protocol.Debugger.enable(); | 14 Protocol.Debugger.enable(); |
13 | 15 |
14 Protocol.Debugger.oncePaused().then(handleDebuggerPausedOne); | 16 Protocol.Debugger.oncePaused().then(handleDebuggerPausedOne); |
15 | 17 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 { | 60 { |
59 if (response.error) { | 61 if (response.error) { |
60 if (response.error.message.indexOf("Can only perform operation while paused.
") !== -1) { | 62 if (response.error.message.indexOf("Can only perform operation while paused.
") !== -1) { |
61 InspectorTest.log("PASS, error message as expected"); | 63 InspectorTest.log("PASS, error message as expected"); |
62 return; | 64 return; |
63 } | 65 } |
64 } | 66 } |
65 InspectorTest.log("FAIL, unexpected error message"); | 67 InspectorTest.log("FAIL, unexpected error message"); |
66 InspectorTest.log(JSON.stringify(response)); | 68 InspectorTest.log(JSON.stringify(response)); |
67 } | 69 } |
OLD | NEW |