efaa34b5e5
Copying one object's named properties is always fine, even if one of the names could be a large index on a TypedArray. Mark the LookupIterator as OWN_SKIP_INTERCEPTOR to avoid the DCHECK. Bug: chromium:1044909 Change-Id: I6918186a4b50df7865de3572cb674fd7d6eadb78 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2023558 Commit-Queue: Jakob Kummerow <jkummerow@chromium.org> Auto-Submit: Jakob Kummerow <jkummerow@chromium.org> Reviewed-by: Toon Verwaest <verwaest@chromium.org> Cr-Commit-Position: refs/heads/master@{#66027}
16 lines
428 B
JavaScript
16 lines
428 B
JavaScript
// Copyright 2020 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.
|
|
|
|
// Flags: --allow-natives-syntax
|
|
|
|
function main() {
|
|
const v2 = Object.prototype;
|
|
v2[4294967296] = {};
|
|
const v12 = {get: function() {}};
|
|
Object.defineProperty(v2, 4294967296, v12);
|
|
const v15 = {...v2};
|
|
}
|
|
%PrepareFunctionForOptimization(main);
|
|
main();
|