You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varnewFn=function(){// this is pretty ugly, but we need to run the code below before the callbackprocess.nextTick(function(){fn.apply(this,arguments);});}...
...
varobj=oldInit.call(this,doc,query,newFn);
I notice that at line 66 of index.js, the arguments is the arguments for the anonymous function in nextTick, not for the newFn.
Is it right?
I think this is better.
varnewFn=function(){// this is pretty ugly, but we need to run the code below before the callbackvarargs=argumentsprocess.nextTick(function(){fn.apply(this,args);});}
The text was updated successfully, but these errors were encountered:
I notice that at line 66 of index.js, the
arguments
is the arguments for the anonymous function innextTick
, not for thenewFn
.Is it right?
I think this is better.
The text was updated successfully, but these errors were encountered: