v8/test/inspector/regress/regress-crbug-1246896.js
Simon Zünd c16405e82e [cleanup] Remove experimental flag for [[Scopes]] removal
After we received feedback about some legitmate use-cases of the
internal [[Scopes]] property, we decided to not go ahead with its
removal.

This CL removes the corresponding experimental flag.

R=kimanh@chromium.org

Bug: chromium:1365858
Change-Id: I6744889b4e2e960695838648e2f4902cbdb75890
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4154416
Auto-Submit: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Kim-Anh Tran <kimanh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#85214}
2023-01-11 11:51:48 +00:00

24 lines
708 B
JavaScript

// Copyright 2022 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.
const {Protocol} = InspectorTest.start('Don\'t crash when getting the properties of a native function');
(async () => {
const { result: { result: {objectId } } } = await Protocol.Runtime.evaluate({
expression: '"".slice',
objectGroup: 'console',
includeCommandLineAPI: true,
});
const { result } = await Protocol.Runtime.getProperties({
objectId,
ownProperties: true,
accessorPropertiesOnly: false,
generatePreview: false,
});
InspectorTest.logMessage(result);
InspectorTest.completeTest();
})();