From d38b6b5cfb2dc810b353997a3a6ceec6f5fbb792 Mon Sep 17 00:00:00 2001 From: "Node.js GitHub Bot" Date: Tue, 21 May 2024 03:35:58 +0300 Subject: [PATCH] deps: patch V8 to 12.4.254.18 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/v8/v8/compare/12.4.254.17...12.4.254.18 PR-URL: https://github.com/nodejs/node/pull/53054 Reviewed-By: Yagiz Nizipli Reviewed-By: Jiawen Geng Reviewed-By: Luigi Pinca Reviewed-By: Benjamin Gruenbaum Reviewed-By: Michaƫl Zasso Reviewed-By: Richard Lau Reviewed-By: Rafael Gonzaga --- deps/v8/include/v8-version.h | 2 +- deps/v8/src/builtins/builtins-array.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/v8/include/v8-version.h b/deps/v8/include/v8-version.h index e769d42101e818..460ec45badd30c 100644 --- a/deps/v8/include/v8-version.h +++ b/deps/v8/include/v8-version.h @@ -11,7 +11,7 @@ #define V8_MAJOR_VERSION 12 #define V8_MINOR_VERSION 4 #define V8_BUILD_NUMBER 254 -#define V8_PATCH_LEVEL 17 +#define V8_PATCH_LEVEL 18 // Use 1 for candidates and 0 otherwise. // (Boolean macro values are not supported by all preprocessors.) diff --git a/deps/v8/src/builtins/builtins-array.cc b/deps/v8/src/builtins/builtins-array.cc index 60dc19367aa389..dc82b658df09e5 100644 --- a/deps/v8/src/builtins/builtins-array.cc +++ b/deps/v8/src/builtins/builtins-array.cc @@ -51,7 +51,7 @@ inline bool HasOnlySimpleElements(Isolate* isolate, DisallowGarbageCollection no_gc; PrototypeIterator iter(isolate, receiver, kStartAtReceiver); for (; !iter.IsAtEnd(); iter.Advance()) { - if (IsJSProxy(iter.GetCurrent())) return false; + if (!IsJSObject(iter.GetCurrent())) return false; Tagged current = iter.GetCurrent(); if (!HasSimpleElements(current)) return false; }