Skip to content

Commit

Permalink
node-api: fix typo in node_api.cc
Browse files Browse the repository at this point in the history
PR-URL: nodejs#42110
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Mestery <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
austinkelleher authored and sxa committed Mar 7, 2022
1 parent 8b94ea6 commit f107f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ v8::Maybe<bool> node_napi_env__::mark_arraybuffer_as_untransferable(
void node_napi_env__::CallFinalizer(napi_finalize cb, void* data, void* hint) {
// we need to keep the env live until the finalizer has been run
// EnvRefHolder provides an exception safe wrapper to Ref and then
// Unref once the lamba is freed
// Unref once the lambda is freed
EnvRefHolder liveEnv(static_cast<napi_env>(this));
node_env()->SetImmediate(
[=, liveEnv = std::move(liveEnv)](node::Environment* node_env) {
Expand Down

0 comments on commit f107f8b

Please sign in to comment.