Skip to content

Commit e1b57e8

Browse files
committed
node-api: guard experimental node_api_set_prototype
1 parent ecfa19e commit e1b57e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/js_native_api.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,12 @@ NAPI_EXTERN napi_status NAPI_CDECL napi_coerce_to_string(napi_env env,
197197
napi_value* result);
198198

199199
// Methods to work with Objects
200+
#ifdef NAPI_EXPERIMENTAL
201+
#define NODE_API_EXPERIMENTAL_HAS_SET_PROTOTYPE
200202
NAPI_EXTERN napi_status NAPI_CDECL node_api_set_prototype(napi_env env,
201203
napi_value object,
202204
napi_value value);
205+
#endif
203206
NAPI_EXTERN napi_status NAPI_CDECL napi_get_prototype(napi_env env,
204207
napi_value object,
205208
napi_value* result);

0 commit comments

Comments
 (0)