mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
27 lines
824 B
Diff
27 lines
824 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Shelley Vohr <shelley.vohr@gmail.com>
|
|
Date: Wed, 15 Nov 2023 12:25:39 +0100
|
|
Subject: fix: missing include for NODE_EXTERN
|
|
|
|
At some point it seems that node.h was removed from the include chain,
|
|
causing the following error:
|
|
|
|
../../third_party/electron_node/src/module_wrap.h:33:1: error: unknown type name 'NODE_EXTERN'
|
|
33 | NODE_EXTERN v8::MaybeLocal<v8::Promise> ImportModuleDynamically(
|
|
| ^
|
|
|
|
This should be upstreamed.
|
|
|
|
diff --git a/src/module_wrap.h b/src/module_wrap.h
|
|
index 8f30f546cc47bdb402ef4b1217d7bbb675a85ef7..a39f3f36f8e736881c7795cfba1d72e0507ea802 100644
|
|
--- a/src/module_wrap.h
|
|
+++ b/src/module_wrap.h
|
|
@@ -7,6 +7,7 @@
|
|
#include <string>
|
|
#include <vector>
|
|
#include "base_object.h"
|
|
+#include "node.h"
|
|
|
|
namespace node {
|
|
|