From bd48ad9c16efc00dc8f857058161ab725f71d3ae Mon Sep 17 00:00:00 2001 From: Austin Kelleher Date: Thu, 24 Feb 2022 13:04:50 -0500 Subject: [PATCH] node-api: fix typo in `node_api.cc` PR-URL: https://github.com/nodejs/node/pull/42110 Reviewed-By: Anna Henningsen Reviewed-By: Antoine du Hamel Reviewed-By: Richard Lau Reviewed-By: Mestery Reviewed-By: Colin Ihrig --- src/node_api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_api.cc b/src/node_api.cc index b1b85073508672..82e228bb954d5a 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -36,7 +36,7 @@ v8::Maybe 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(this)); node_env()->SetImmediate( [=, liveEnv = std::move(liveEnv)](node::Environment* node_env) {