diff options
Diffstat (limited to 'deps/v8/test/inspector/runtime/query-objects.js')
-rw-r--r-- | deps/v8/test/inspector/runtime/query-objects.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/deps/v8/test/inspector/runtime/query-objects.js b/deps/v8/test/inspector/runtime/query-objects.js index 63a26deaefc..302c7c195cd 100644 --- a/deps/v8/test/inspector/runtime/query-objects.js +++ b/deps/v8/test/inspector/runtime/query-objects.js @@ -147,6 +147,34 @@ InspectorTest.runAsyncTestSuite([ session.disconnect(); }, + async function testQueryObjectsWithArrayBuffer() { + let contextGroup = new InspectorTest.ContextGroup(); + let session = contextGroup.connect(); + let Protocol = session.Protocol; + + await Protocol.Runtime.evaluate({ + expression: 'new Int8Array(32)', + }); + let {result:{result:{objectId}}} = await Protocol.Runtime.evaluate({ + expression: 'ArrayBuffer.prototype' + }); + let {result:{objects}} = await session.Protocol.Runtime.queryObjects({ + prototypeObjectId: objectId + }); + let {result:{result: properties}} = await session.Protocol.Runtime.getProperties({ + objectId: objects.objectId, + ownProperties: true, + generatePreview: true + }); + await session.Protocol.Runtime.getProperties({ + objectId: properties[0].value.objectId, + ownProperties: true, + generatePreview: true + }); + InspectorTest.log('Test that queryObjects does not crash for on-heap TypedArrays'); + session.disconnect(); + }, + async function testWithObjectGroup() { let contextGroup = new InspectorTest.ContextGroup(); let session = contextGroup.connect(); |