summaryrefslogtreecommitdiff
path: root/deps/v8/test/inspector/debugger/class-private-methods-static-nested.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/inspector/debugger/class-private-methods-static-nested.js')
-rw-r--r--deps/v8/test/inspector/debugger/class-private-methods-static-nested.js16
1 files changed, 6 insertions, 10 deletions
diff --git a/deps/v8/test/inspector/debugger/class-private-methods-static-nested.js b/deps/v8/test/inspector/debugger/class-private-methods-static-nested.js
index db43d867f0..0d67f819d2 100644
--- a/deps/v8/test/inspector/debugger/class-private-methods-static-nested.js
+++ b/deps/v8/test/inspector/debugger/class-private-methods-static-nested.js
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+utils.load('test/inspector/private-class-member-inspector-test.js');
+
let { session, contextGroup, Protocol } = InspectorTest.start(
"Test static private class methods"
);
@@ -32,26 +34,20 @@ InspectorTest.runAsyncTestSuite([
// Do not await here, instead oncePaused should be awaited.
Protocol.Runtime.evaluate({ expression: 'run()' });
- InspectorTest.log('privateProperties on class A');
+ InspectorTest.log('private members on class A');
let {
params: { callFrames }
} = await Protocol.Debugger.oncePaused(); // inside A.#method()
let frame = callFrames[0];
- let { result } = await Protocol.Runtime.getProperties({
- objectId: frame.this.objectId
- });
- InspectorTest.logMessage(result.privateProperties);
+ await printPrivateMembers(Protocol, InspectorTest, { objectId: frame.this.objectId });
Protocol.Debugger.resume();
({ params: { callFrames } } = await Protocol.Debugger.oncePaused()); // B.test();
frame = callFrames[0];
- InspectorTest.log('privateProperties on class B');
- ({ result } = await Protocol.Runtime.getProperties({
- objectId: frame.this.objectId
- }));
- InspectorTest.logObject(result.privateProperties);
+ InspectorTest.log('private members on class B');
+ await printPrivateMembers(Protocol, InspectorTest, { objectId: frame.this.objectId });
Protocol.Debugger.resume();
Protocol.Debugger.disable();