Skip to content

Commit 760d81a

Browse files
sparistXmader
authored andcommitted
Remove includes of upward dependencies
NAPI_EXPERIMENTAL had to be removed because it caused a NAPI_VERSION definition conflict.
1 parent 3a6489b commit 760d81a

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

src/js_native_api_v8.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#include <algorithm>
22
#include <climits> // INT_MAX
33
#include <cmath>
4-
#ifndef NAPI_EXPERIMENTAL
5-
#define NAPI_EXPERIMENTAL
6-
#endif
7-
#include "env-inl.h"
84
#include "js_native_api.h"
95
#include "js_native_api_v8.h"
106
#include "util-inl.h"

src/js_native_api_v8_internals.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@
1313
// are bridged to remove references to the `node` namespace. `node_version.h`,
1414
// included below, defines `NAPI_VERSION`.
1515

16-
#include "node_version.h"
16+
#include "util.h"
1717

18-
#include "env.h"
1918
#include "gtest/gtest_prod.h"
20-
#include "node_errors.h"
21-
#include "node_internals.h"
19+
20+
#include <v8.h>
2221

2322
#define NAPI_ARRAYSIZE(array) node::arraysize((array))
2423

0 commit comments

Comments
 (0)