Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
fix for patch for node9
Browse files Browse the repository at this point in the history
  • Loading branch information
igorklopov committed Nov 2, 2017
1 parent cd1f463 commit c08b331
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions patches/node.v9.0.0.cpp.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
Expand Down

0 comments on commit c08b331

Please sign in to comment.