Skip to content

Commit cc05792

Browse files
LiedtkeV8 LUCI CQ
authored andcommitted
[builtins] HasOnlySimpleElements is false for non-JSObjects
Bug: 338908243 Change-Id: I91139167fb186d56db1695a05e0173069c6c195b Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5529235 Auto-Submit: Matthias Liedtke <[email protected]> Commit-Queue: Jakob Kummerow <[email protected]> Commit-Queue: Matthias Liedtke <[email protected]> Reviewed-by: Jakob Kummerow <[email protected]> Cr-Commit-Position: refs/heads/main@{#93820}
1 parent 35e86d8 commit cc05792

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/builtins/builtins-array.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ inline bool HasOnlySimpleElements(Isolate* isolate,
5151
DisallowGarbageCollection no_gc;
5252
PrototypeIterator iter(isolate, receiver, kStartAtReceiver);
5353
for (; !iter.IsAtEnd(); iter.Advance()) {
54-
if (IsJSProxy(iter.GetCurrent())) return false;
54+
if (!IsJSObject(iter.GetCurrent())) return false;
5555
Tagged<JSObject> current = iter.GetCurrent<JSObject>();
5656
if (!HasSimpleElements(current)) return false;
5757
}

0 commit comments

Comments
 (0)