diff options
author | Austin Kelleher <austin.kell47@gmail.com> | 2022-02-24 21:04:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 21:04:50 +0300 |
commit | 663a669b0bd3b53512472a7fbadee8709e964d36 (patch) | |
tree | 21ad10e9084b53cc170199c7552c8a07893cd5b9 /src/node_api.cc | |
parent | 9be1dcff3412e5f8eb60ecffa1eb5567789357eb (diff) |
node-api: fix typo in `node_api.cc`
PR-URL: https://github.com/nodejs/node/pull/42110
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_api.cc')
-rw-r--r-- | src/node_api.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_api.cc b/src/node_api.cc index b1b85073508..82e228bb954 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -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) { |