We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60e7700 commit faabe83Copy full SHA for faabe83
src/shims/env-inl.h
@@ -1,19 +1,10 @@
1
#ifndef SRC_SHIMS_ENV_INL_H_
2
#define SRC_SHIMS_ENV_INL_H_
3
4
-#include <napi.h>
+// This header exists for Node.js source compatibility.
5
+// src/upstream/node_sqlite.cc includes "env-inl.h", and we can't modify
6
+// upstream files (they're auto-synced from Node.js). The actual Environment
7
+// implementation is in util.h.
8
+#include "util.h"
9
-namespace node {
-
-// Environment stubs
-class Environment {
10
-public:
11
- static Environment *GetCurrent(Napi::Env env) {
12
- static Environment instance;
13
- return &instance;
14
- }
15
-};
16
17
-} // namespace node
18
19
-#endif // SRC_SHIMS_ENV_INL_H_
+#endif // SRC_SHIMS_ENV_INL_H_
0 commit comments