OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 print('Checks that takeHeapSnapshot uses empty accessing_context for access \ |
| 6 checks.'); |
| 7 |
| 8 InspectorTest.addScript(` |
| 9 function testFunction() { |
| 10 var array = [ createObjectWithStrictCheck() ]; |
| 11 debugger; |
| 12 } |
| 13 //# sourceURL=test.js`); |
| 14 |
| 15 Protocol.Debugger.onScriptParsed(message => { |
| 16 Protocol.HeapProfiler.takeHeapSnapshot({ reportProgress: false }) |
| 17 .then(() => Protocol.Debugger.resume()); |
| 18 }); |
| 19 |
| 20 Protocol.Debugger.enable(); |
| 21 Protocol.HeapProfiler.enable(); |
| 22 Protocol.Runtime.evaluate({ expression: 'testFunction()' }) |
| 23 .then(() => InspectorTest.log('Successfully finished')) |
| 24 .then(InspectorTest.completeTest); |
OLD | NEW |