From 2b8fc8a139d412ae39156d1c9dd97fe78ca329ea Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Mon, 1 Nov 2021 20:39:42 +0100 Subject: [PATCH] chore: update chore_add_context_to_context_aware_module_prevention.patch (#31579) (#31628) Co-authored-by: Milan Burda --- ...chore_add_context_to_context_aware_module_prevention.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/node/chore_add_context_to_context_aware_module_prevention.patch b/patches/node/chore_add_context_to_context_aware_module_prevention.patch index 1b7e544c997c4..ec39edb0f66b2 100644 --- a/patches/node/chore_add_context_to_context_aware_module_prevention.patch +++ b/patches/node/chore_add_context_to_context_aware_module_prevention.patch @@ -8,7 +8,7 @@ modules from being used in the renderer process. This should be upstreamed as a customizable error message. diff --git a/src/node_binding.cc b/src/node_binding.cc -index 3c05e553c8e61456205a1f632c903055650a3fc6..292204024f64e6457f1344db1c74d006b7233c82 100644 +index 3c05e553c8e61456205a1f632c903055650a3fc6..7ed875ca9cd3991e1d77eabad0883f85a27bcd9e 100644 --- a/src/node_binding.cc +++ b/src/node_binding.cc @@ -4,6 +4,7 @@ @@ -27,7 +27,7 @@ index 3c05e553c8e61456205a1f632c903055650a3fc6..292204024f64e6457f1344db1c74d006 + char errmsg[1024]; + snprintf(errmsg, + sizeof(errmsg), -+ "Loading non-context-aware native module in renderer: '%s', but app.allowRendererProcessReuse is true. See https://github.com/electron/electron/issues/18397.", ++ "Loading non-context-aware native module in renderer: '%s'. See https://github.com/electron/electron/issues/18397.", + *filename); + env->ThrowError(errmsg); return false;