File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,7 @@ typedef struct napi_env__* napi_env;
4343// basic APIs (unless the user explicitly casts the environment), we achieve
4444// the ability to ensure at compile time that we do not call APIs that affect
4545// the state of the JS engine from a synchronous (basic) finalizer.
46- #if !defined(NAPI_EXPERIMENTAL ) || \
47- (defined(NAPI_EXPERIMENTAL ) && \
48- (defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT ) || \
49- defined(NODE_API_EXPERIMENTAL_BASIC_ENV_OPT_OUT )))
5046typedef struct napi_env__ * node_api_nogc_env ;
51- #else
52- typedef const struct napi_env__ * node_api_nogc_env ;
53- #endif
5447typedef node_api_nogc_env node_api_basic_env ;
5548
5649typedef struct napi_value__ * napi_value ;
@@ -147,16 +140,7 @@ typedef void(NAPI_CDECL* napi_finalize)(napi_env env,
147140 void * finalize_data ,
148141 void * finalize_hint );
149142
150- #if !defined(NAPI_EXPERIMENTAL ) || \
151- (defined(NAPI_EXPERIMENTAL ) && \
152- (defined(NODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT ) || \
153- defined(NODE_API_EXPERIMENTAL_BASIC_ENV_OPT_OUT )))
154143typedef napi_finalize node_api_nogc_finalize ;
155- #else
156- typedef void (NAPI_CDECL * node_api_nogc_finalize )(node_api_nogc_env env ,
157- void * finalize_data ,
158- void * finalize_hint );
159- #endif
160144typedef node_api_nogc_finalize node_api_basic_finalize ;
161145
162146typedef struct {
Original file line number Diff line number Diff line change @@ -135,6 +135,8 @@ napi_create_external_buffer(napi_env env,
135135 void * finalize_hint,
136136 napi_value* result);
137137#endif // NODE_API_NO_EXTERNAL_BUFFERS_ALLOWED
138+
139+
138140NAPI_EXTERN napi_status NAPI_CDECL napi_create_buffer_copy (napi_env env,
139141 size_t length,
140142 const void * data,
You can’t perform that action at this time.
0 commit comments