chore: update chore_add_context_to_context_aware_module_prevention.patch (#31579)
This commit is contained in:
parent
43987bbc19
commit
be8b1a2727
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ modules from being used in the renderer process. This should be upstreamed as
|
||||||
a customizable error message.
|
a customizable error message.
|
||||||
|
|
||||||
diff --git a/src/node_binding.cc b/src/node_binding.cc
|
diff --git a/src/node_binding.cc b/src/node_binding.cc
|
||||||
index e323f76261f2028ef58da74066f9112d8a5a8df2..02d8566caffb86d05645fb602ca7b5c6b8c71aa9 100644
|
index e323f76261f2028ef58da74066f9112d8a5a8df2..bec34a61e0be78d863e476c75647e3496aa6a2c5 100644
|
||||||
--- a/src/node_binding.cc
|
--- a/src/node_binding.cc
|
||||||
+++ b/src/node_binding.cc
|
+++ b/src/node_binding.cc
|
||||||
@@ -4,6 +4,7 @@
|
@@ -4,6 +4,7 @@
|
||||||
|
@ -27,7 +27,7 @@ index e323f76261f2028ef58da74066f9112d8a5a8df2..02d8566caffb86d05645fb602ca7b5c6
|
||||||
+ char errmsg[1024];
|
+ char errmsg[1024];
|
||||||
+ snprintf(errmsg,
|
+ snprintf(errmsg,
|
||||||
+ sizeof(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);
|
+ *filename);
|
||||||
+ env->ThrowError(errmsg);
|
+ env->ThrowError(errmsg);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue