nodejs/deps/v8/test/inspector/regress/regress-crbug-1469092.js
Michaël Zasso 5edec0e39a
deps: update V8 to 13.0.245.25
PR-URL: https://github.com/nodejs/node/pull/55014
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2025-01-31 12:45:51 +01:00

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();
})();