File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
#include < limits.h> // INT_MAX
2
2
#include < cmath>
3
+ #include < algorithm>
3
4
#define NAPI_EXPERIMENTAL
4
5
#include " js_native_api_v8.h"
5
6
#include " js_native_api.h"
Original file line number Diff line number Diff line change 4
4
// The V8 implementation of N-API, including `js_native_api_v8.h` uses certain
5
5
// idioms which require definition here. For example, it uses a variant of
6
6
// persistent references which need not be reset in the constructor. It is the
7
- // responsibility of this file to define these idioms.
7
+ // responsibility of this file to define these idioms. Optionally, this file
8
+ // may also define `NAPI_VERSION` and set it to the version of N-API to be
9
+ // exposed.
8
10
9
11
// In the case of the Node.js implementation of N-API some of the idioms are
10
12
// imported directly from Node.js by including `node_internals.h` below. Others
11
- // are bridged to remove references to the `node` namespace.
13
+ // are bridged to remove references to the `node` namespace. `node_version.h`,
14
+ // included below, defines `NAPI_VERSION`.
12
15
13
16
#include " node_version.h"
14
17
#include " env.h"
You can’t perform that action at this time.
0 commit comments