2023-10-05 08:46:07 +02:00
|
|
|
// 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.
|
|
|
|
|
2025-01-30 16:35:04 +01:00
|
|
|
InspectorTest.start('Don\'t crash when pausing in an untrusted session.');
|
2023-10-05 08:46:07 +02:00
|
|
|
|
|
|
|
(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();
|
|
|
|
})();
|