diff --git a/patches/node.v10.15.3.cpp.patch b/patches/node.v10.15.3.cpp.patch index 98396a31..89c3908c 100644 --- a/patches/node.v10.15.3.cpp.patch +++ b/patches/node.v10.15.3.cpp.patch @@ -130,7 +130,7 @@ uint32_t magic_number = GetMagicNumber(); - if (magic_number != ComputeMagicNumber(isolate)) return MAGIC_NUMBER_MISMATCH; + if (magic_number != ComputeMagicNumber(isolate)) { -+ // base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); ++ // base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); // TODO enable after solving v8-cache/ncc issue + return MAGIC_NUMBER_MISMATCH; + } uint32_t version_hash = GetHeaderValue(kVersionHashOffset); diff --git a/patches/node.v12.1.0.cpp.patch b/patches/node.v12.1.0.cpp.patch index d406f599..82efc363 100644 --- a/patches/node.v12.1.0.cpp.patch +++ b/patches/node.v12.1.0.cpp.patch @@ -108,7 +108,7 @@ uint32_t magic_number = GetMagicNumber(); - if (magic_number != kMagicNumber) return MAGIC_NUMBER_MISMATCH; + if (magic_number != kMagicNumber) { -+ // base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); ++ // base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); // TODO enable after solving v8-cache/ncc issue + return MAGIC_NUMBER_MISMATCH; + } uint32_t version_hash = GetHeaderValue(kVersionHashOffset); diff --git a/patches/node.v4.9.1.cpp.patch b/patches/node.v4.9.1.cpp.patch index 34915831..f97fef55 100644 --- a/patches/node.v4.9.1.cpp.patch +++ b/patches/node.v4.9.1.cpp.patch @@ -123,7 +123,7 @@ uint32_t magic_number = GetMagicNumber(); - if (magic_number != ComputeMagicNumber(isolate)) return MAGIC_NUMBER_MISMATCH; + if (magic_number != ComputeMagicNumber(isolate)) { -+ base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); ++ // base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); // TODO enable after solving v8-cache/ncc issue + return MAGIC_NUMBER_MISMATCH; + } uint32_t version_hash = GetHeaderValue(kVersionHashOffset); diff --git a/patches/node.v6.17.1.cpp.patch b/patches/node.v6.17.1.cpp.patch index b4a8c7f0..e7365339 100644 --- a/patches/node.v6.17.1.cpp.patch +++ b/patches/node.v6.17.1.cpp.patch @@ -122,7 +122,7 @@ uint32_t magic_number = GetMagicNumber(); - if (magic_number != ComputeMagicNumber(isolate)) return MAGIC_NUMBER_MISMATCH; + if (magic_number != ComputeMagicNumber(isolate)) { -+ base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); ++ // base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); // TODO enable after solving v8-cache/ncc issue + return MAGIC_NUMBER_MISMATCH; + } uint32_t version_hash = GetHeaderValue(kVersionHashOffset); diff --git a/patches/node.v8.16.0.cpp.patch b/patches/node.v8.16.0.cpp.patch index 8fc18290..d797e48f 100644 --- a/patches/node.v8.16.0.cpp.patch +++ b/patches/node.v8.16.0.cpp.patch @@ -134,7 +134,7 @@ uint32_t magic_number = GetMagicNumber(); - if (magic_number != ComputeMagicNumber(isolate)) return MAGIC_NUMBER_MISMATCH; + if (magic_number != ComputeMagicNumber(isolate)) { -+ base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); ++ // base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); // TODO enable after solving v8-cache/ncc issue + return MAGIC_NUMBER_MISMATCH; + } uint32_t version_hash = GetHeaderValue(kVersionHashOffset);