| OLD | NEW |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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.log('Checks internal properties in Runtime.getProperties output'); | 5 let {session, contextGroup, Protocol} = InspectorTest.start('Checks internal pro
perties in Runtime.getProperties output'); |
| 6 | 6 |
| 7 InspectorTest.addScript(` | 7 contextGroup.addScript(` |
| 8 function* foo() { | 8 function* foo() { |
| 9 yield 1; | 9 yield 1; |
| 10 } | 10 } |
| 11 var gen1 = foo(); | 11 var gen1 = foo(); |
| 12 var gen2 = foo(); | 12 var gen2 = foo(); |
| 13 //# sourceURL=test.js`, 7, 26); | 13 //# sourceURL=test.js`, 7, 26); |
| 14 | 14 |
| 15 Protocol.Runtime.enable(); | 15 Protocol.Runtime.enable(); |
| 16 Protocol.Debugger.enable(); | 16 Protocol.Debugger.enable(); |
| 17 | 17 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 ]); | 61 ]); |
| 62 | 62 |
| 63 function checkExpression(expression) | 63 function checkExpression(expression) |
| 64 { | 64 { |
| 65 InspectorTest.log(`expression: ${expression}`); | 65 InspectorTest.log(`expression: ${expression}`); |
| 66 return Protocol.Runtime.evaluate({ expression: expression }) | 66 return Protocol.Runtime.evaluate({ expression: expression }) |
| 67 .then(message => Protocol.Runtime.getProperties({ objectId: message.result.r
esult.objectId })) | 67 .then(message => Protocol.Runtime.getProperties({ objectId: message.result.r
esult.objectId })) |
| 68 .then(message => { delete message.result.result; return message; }) | 68 .then(message => { delete message.result.result; return message; }) |
| 69 .then(InspectorTest.logMessage); | 69 .then(InspectorTest.logMessage); |
| 70 } | 70 } |
| OLD | NEW |