Browse files

deps: cherry-pick a927f81c7 from V8 upstream

Original commit message:

  [ValueSerializer] Allow wire format versions beginning with 13 to be deserialized in non-legacy mode.

  As of version 13, delegates do not need to worry about colliding tags with the
  tags reserved by v8, since v8 inserts a "host object" prefix beforehand. Thus
  the format is now suitable for more general use, without opting into the "legacy"
  mode that had this caveat.

  Cr-Commit-Position: refs/heads/master@{#43521}

PR-URL: #11752
Reviewed-By: Ben Noordhuis <>
Reviewed-By: Franziska Hinkelmann <>
  • Loading branch information...
addaleax authored and targos committed Mar 8, 2017
1 parent 0f3e69d commit 66904156966bf7a735a313e9396f02b0c832cd29
Showing with 3 additions and 4 deletions.
  1. +3 −4 deps/v8/src/
@@ -3273,10 +3273,9 @@ Maybe<bool> ValueDeserializer::ReadHeader(Local<Context> context) {
// TODO(jbroman): Today, all wire formats are "legacy". When a more supported
// format is added, compare the version of the internal serializer to the
// minimum non-legacy version number.
if (!private_->supports_legacy_wire_format) {
static const uint32_t kMinimumNonLegacyVersion = 13;
if (GetWireFormatVersion() < kMinimumNonLegacyVersion &&
!private_->supports_legacy_wire_format) {
has_pending_exception = true;

0 comments on commit 6690415

Please sign in to comment.