Skip to content

Commit

Permalink
squash: switch define used to check for cage
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Dawson <mdawson@devrus.com>
  • Loading branch information
mhdawson committed Nov 1, 2022
1 parent b9b9baa commit df2f806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_api.cc
Expand Up @@ -950,7 +950,7 @@ napi_status NAPI_CDECL napi_create_external_buffer(napi_env env,
NAPI_PREAMBLE(env);
CHECK_ARG(env, result);

#if defined(V8_COMPRESS_POINTERS_IN_SHARED_CAGE)
#if defined(V8_ENABLE_SANDBOX)
return napi_set_last_error(env, napi_no_external_buffers_allowed);
#endif

Expand Down

0 comments on commit df2f806

Please sign in to comment.