diff --git a/deps/v8/src/objects/js-objects.cc b/deps/v8/src/objects/js-objects.cc index 4335a7cf0e4698..0f27fc3c303cf2 100644 --- a/deps/v8/src/objects/js-objects.cc +++ b/deps/v8/src/objects/js-objects.cc @@ -432,9 +432,7 @@ Maybe JSReceiver::SetOrCopyDataProperties( Nothing()); if (!from->HasFastProperties() && target->HasFastProperties() && - !target->IsJSGlobalProxy()) { - // JSProxy is always in slow-mode. - DCHECK(!target->IsJSProxy()); + target->IsJSObject() && !target->IsJSGlobalProxy()) { // Convert to slow properties if we're guaranteed to overflow the number of // descriptors. int source_length;