From c08b3312b23d7cbdd8f0869ed2c84cd9b61d40ea Mon Sep 17 00:00:00 2001 From: Igor Klopov Date: Fri, 3 Nov 2017 01:28:17 +0300 Subject: [PATCH] fix for patch for node9 --- patches/node.v9.0.0.cpp.patch | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/patches/node.v9.0.0.cpp.patch b/patches/node.v9.0.0.cpp.patch index e1059338..61ce161e 100644 --- a/patches/node.v9.0.0.cpp.patch +++ b/patches/node.v9.0.0.cpp.patch @@ -126,7 +126,7 @@ isolate->counters()->total_parse_size()->Increment(source->length()); --- node/deps/v8/src/snapshot/code-serializer.cc +++ node/deps/v8/src/snapshot/code-serializer.cc -@@ -392,31 +392,50 @@ +@@ -392,31 +392,46 @@ SerializedCodeData::SanityCheckResult SerializedCodeData::SanityCheck( Isolate* isolate, uint32_t expected_source_hash) const { @@ -136,10 +136,6 @@ + if (magic_number != ComputeMagicNumber(isolate)) { + base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); + return MAGIC_NUMBER_MISMATCH; -+ } -+ if (GetExtraReferences() > GetExtraReferences(isolate)) { -+ base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH (2)\n"); -+ return MAGIC_NUMBER_MISMATCH; + } uint32_t version_hash = GetHeaderValue(kVersionHashOffset); - uint32_t source_hash = GetHeaderValue(kSourceHashOffset);