mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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>
This commit is contained in:
1 parent
8b94ea6e1c
commit
f107f8bf40
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user