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 scopes d
o not report variables with empty names'); |
| 6 |
| 7 contextGroup.addScript( |
6 `function testFunction() | 8 `function testFunction() |
7 { | 9 { |
8 for (var a of [1]) { | 10 for (var a of [1]) { |
9 ++a; | 11 ++a; |
10 debugger; | 12 debugger; |
11 } | 13 } |
12 }`); | 14 }`); |
13 | 15 |
14 Protocol.Debugger.enable(); | 16 Protocol.Debugger.enable(); |
15 Protocol.Debugger.oncePaused().then(dumpScopeOnPause); | 17 Protocol.Debugger.oncePaused().then(dumpScopeOnPause); |
(...skipping 17 matching lines...) Expand all Loading... |
33 } | 35 } |
34 } | 36 } |
35 | 37 |
36 function dumpProperties(message) | 38 function dumpProperties(message) |
37 { | 39 { |
38 InspectorTest.logMessage(message); | 40 InspectorTest.logMessage(message); |
39 --waitScopeObjects; | 41 --waitScopeObjects; |
40 if (!waitScopeObjects) | 42 if (!waitScopeObjects) |
41 Protocol.Debugger.resume().then(InspectorTest.completeTest); | 43 Protocol.Debugger.resume().then(InspectorTest.completeTest); |
42 } | 44 } |
OLD | NEW |