We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
node_api.cc
1 parent 8b94ea6 commit f107f8bCopy full SHA for f107f8b
src/node_api.cc
@@ -36,7 +36,7 @@ v8::Maybe<bool> node_napi_env__::mark_arraybuffer_as_untransferable(
36
void node_napi_env__::CallFinalizer(napi_finalize cb, void* data, void* hint) {
37
// we need to keep the env live until the finalizer has been run
38
// EnvRefHolder provides an exception safe wrapper to Ref and then
39
- // Unref once the lamba is freed
+ // Unref once the lambda is freed
40
EnvRefHolder liveEnv(static_cast<napi_env>(this));
41
node_env()->SetImmediate(
42
[=, liveEnv = std::move(liveEnv)](node::Environment* node_env) {
0 commit comments