PR-URL: https://github.com/nodejs/node/pull/55014 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
20 lines
626 B
JavaScript
20 lines
626 B
JavaScript
// Copyright 2023 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
InspectorTest.start('Don\'t crash when pausing in an untrusted session.');
|
|
|
|
(async () => {
|
|
const contextGroup = new InspectorTest.ContextGroup();
|
|
const session = contextGroup.connect(/* isFullyTrusted */ false);
|
|
const { Protocol } = session;
|
|
|
|
await Protocol.Debugger.enable();
|
|
|
|
Protocol.Runtime.evaluate({ expression: 'debugger' });
|
|
await Protocol.Debugger.oncePaused();
|
|
await Protocol.Debugger.resume();
|
|
|
|
InspectorTest.completeTest();
|
|
})();
|