Commit bf35ae0d authored by Camillo's avatar Camillo Committed by V8 LUCI CQ

[value-serializer] Add fast-failing ObjectVerify

Bug: chromium:1364974
Change-Id: Icfecc261cdb12fdd211cb821d48ae34a606b974e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3905187Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83361}
parent 7da3767f
......@@ -1479,6 +1479,12 @@ MaybeHandle<Object> ValueDeserializer::ReadObject() {
isolate_->Throw(*isolate_->factory()->NewError(
MessageTemplate::kDataCloneDeserializationError));
}
#if defined(DEBUG) && defined(VERIFY_HEAP)
if (!result.is_null() && v8_flags.enable_slow_asserts &&
v8_flags.verify_heap) {
object->ObjectVerify(isolate_);
}
#endif
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment