Skip to content

Commit ba929b4

Browse files
authored
chore: remove obsolete cjs assert patch (electron#23422)
1 parent a707a3e commit ba929b4

9 files changed

+12
-41
lines changed

patches/node/.patches

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ remove_deprecated_task_api_override_removed_in_latest_v8.patch
3030
remove_serialization_deserialization_of_wasmmoduleobject.patch
3131
override_existing_v8_reallocate.patch
3232
fix_use_crypto_impls_for_compat.patch
33-
fix_we_need_to_eager-load_cjs_modules.patch
3433
avoid_calling_deprecated_method.patch
3534
remove_deprecated_wasm_module_type_check.patch
3635
weakrefs_rename_finalizationgroup_to_finalizationregistry_for_js.patch

patches/node/avoid_calling_deprecated_method.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Subject: Avoid calling deprecated method
55

66
The {SetExpectInlineWasm} method is deprecated and non-functional since
77
V8 v8.1.
8-
Thus node should stop calling it, so that it can be fully removed in a
9-
future v8 version.
8+
9+
This is already present in Node.js v14 and can be removed when we upgrade.
1010

1111
diff --git a/src/node_serdes.cc b/src/node_serdes.cc
1212
index a2d185c4167a75e227cd4b2abbf5c5abc7e16acb..e918ed9d12e9fb1d13b2fc05a98cab099fb71a68 100644

patches/node/fix_we_need_to_eager-load_cjs_modules.patch

-36
This file was deleted.

patches/node/refactor_transferrablemodule_is_deprecated_use_compiledwasmmodule.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Date: Mon, 2 Dec 2019 17:25:38 -0800
44
Subject: refactor: TransferrableModule is deprecated, use CompiledWasmModule
55
instead
66

7-
This will be upstreamed to nodejs/node
7+
This is already present in Node.js v14 and can be removed when we upgrade.
88

99
diff --git a/src/node_messaging.cc b/src/node_messaging.cc
1010
index c7c46063731a5b49366d8e8702b625162b361471..a8cfbec2f5bf2387312237114ab5eb058561b898 100644

patches/node/remove_deprecated_task_api_override_removed_in_latest_v8.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ From: Andy Locascio <andy@slack-corp.com>
33
Date: Thu, 9 Jan 2020 15:48:36 -0800
44
Subject: remove deprecated task API override removed in latest v8
55

6-
Node.js will pick this up when they roll next.
6+
This is already present in Node.js v14 and can be removed when we upgrade.
77

88
CL: https://chromium-review.googlesource.com/c/v8/v8/+/1868620
99

patches/node/remove_deprecated_wasm_module_type_check.patch

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Subject: Remove deprecated wasm module type check
66
The method was deprecated in favor of {IsWasmModuleObject}.
77
https://chromium-review.googlesource.com/c/v8/v8/+/2033170
88

9+
This is already present in Node.js v14 and can be removed when we upgrade.
10+
911
diff --git a/src/node_types.cc b/src/node_types.cc
1012
index a53bcba555448fd99d582da7dc0c7af528627ca5..e816e0af54d1cf52f2af9ded49e25625b782d5be 100644
1113
--- a/src/node_types.cc

patches/node/remove_serialization_deserialization_of_wasmmoduleobject.patch

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ From: John Kleinschmidt <jkleinsc@github.com>
33
Date: Tue, 28 Jan 2020 12:12:28 -0500
44
Subject: Remove serialization/deserialization of WasmModuleObject
55

6+
This is already present in Node.js v14 and can be removed when we upgrade.
7+
68
Serialization of WasmModuleObject was removed here:
79
https://chromium.googlesource.com/v8/v8/+/30e4ba6df4cdf5582de4d79850bcd270e6a75a7a
810

patches/node/weakrefs_rename_finalizationgroup_to_finalizationregistry_for_js.patch

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Subject: Rename FinalizationGroup to FinalizationRegistry for JS
55

66
https://chromium-review.googlesource.com/c/v8/v8/+/2071236
77

8+
This is already present in Node.js v14 and can be removed when we upgrade.
9+
810
diff --git a/test/parallel/test-finalization-group-error.js b/test/parallel/test-finalization-group-error.js
911
index 0685811f55b7f8efc88e04ffd5e173ed7d415258..46a670073b1dbba9729e54166378991a7edba5a0 100644
1012
--- a/test/parallel/test-finalization-group-error.js

patches/node/weakrefs_split_out_finalizationregistry_cleanupsome.patch

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Subject: Split out FinalizationRegistry#cleanupSome to a different flag
55

66
https://chromium-review.googlesource.com/c/v8/v8/+/2141011
77

8+
This is already present in Node.js v14 and can be removed when we upgrade.
9+
810
diff --git a/test/parallel/test-finalization-group-error.js b/test/parallel/test-finalization-group-error.js
911
index 46a670073b1dbba9729e54166378991a7edba5a0..0857bedd043f0436bddc6d8641c51e78a8b4c562 100644
1012
--- a/test/parallel/test-finalization-group-error.js

0 commit comments

Comments
 (0)