src: fix typo in callback.cc

PR-URL: https://github.com/nodejs/node/pull/26337
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
gengjiawen 2019-02-27 23:24:05 +08:00 committed by Ruben Bridgewater
parent 2bf6e71d9e
commit 5e23bac9dd
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -220,7 +220,7 @@ MaybeLocal<Value> MakeCallback(Isolate* isolate,
MaybeLocal<Value> ret = MaybeLocal<Value> ret =
InternalMakeCallback(env, recv, callback, argc, argv, asyncContext); InternalMakeCallback(env, recv, callback, argc, argv, asyncContext);
if (ret.IsEmpty() && env->makecallback_depth() == 0) { if (ret.IsEmpty() && env->makecallback_depth() == 0) {
// This is only for legacy compatiblity and we may want to look into // This is only for legacy compatibility and we may want to look into
// removing/adjusting it. // removing/adjusting it.
return Undefined(env->isolate()); return Undefined(env->isolate());
} }