bd5e4b215c
We have a bug report from 2018 that no longer reproduces on ToT. This CL adds a regression bug regardless to make sure we don't re-introduce the bug that got fixed as a side-effect. R=kimanh@chromium.org Fixed: chromium:1246896 Change-Id: I8f9fdcbf7051b23e03cbbfc572771a410f70ad37 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3822668 Reviewed-by: Kim-Anh Tran <kimanh@chromium.org> Commit-Queue: Simon Zünd <szuend@chromium.org> Cr-Commit-Position: refs/heads/main@{#82372}
24 lines
708 B
JavaScript
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();
|
|
})();
|