Index: src/value-serializer.cc |
diff --git a/src/value-serializer.cc b/src/value-serializer.cc |
index 0346b02d58bcf4a0398722073301464ea88793b8..c6abb8a85cda9166e29a2ce890e2742f56290f1b 100644 |
--- a/src/value-serializer.cc |
+++ b/src/value-serializer.cc |
@@ -1797,8 +1797,7 @@ ValueDeserializer::ReadObjectUsingEntireBufferForLegacyFormat() { |
!SetPropertiesFromKeyValuePairs( |
isolate_, js_object, &stack[begin_properties], num_properties) |
.FromMaybe(false)) { |
- isolate_->Throw(*isolate_->factory()->NewError( |
- MessageTemplate::kDataCloneDeserializationError)); |
+ DCHECK(isolate_->has_pending_exception()); |
return MaybeHandle<Object>(); |
} |
@@ -1829,8 +1828,7 @@ ValueDeserializer::ReadObjectUsingEntireBufferForLegacyFormat() { |
!SetPropertiesFromKeyValuePairs( |
isolate_, js_array, &stack[begin_properties], num_properties) |
.FromMaybe(false)) { |
- isolate_->Throw(*isolate_->factory()->NewError( |
- MessageTemplate::kDataCloneDeserializationError)); |
+ DCHECK(isolate_->has_pending_exception()); |
return MaybeHandle<Object>(); |
} |