Open erossignon opened 2 years ago
Fixing a callbackify behavior that is different from the NodeJS implementation ( when NodeJS version >= 12.0)
In node, the callbackified function has a length that is one more than the length of the original function. For instance:
callbackify((a,b,c)=>Promise<void>).length = 4
this is not the case in the current version (<=0.12.4) where
callbackify((a,b,c)=>Promise<void>).length = 3
This PR provides the fix and the associated unit test.
In which node version is this the case?
Bear in mind that the current node-util largely matches node 0.12.
Any updates on this? :)
Fixing a callbackify behavior that is different from the NodeJS implementation ( when NodeJS version >= 12.0)
In node, the callbackified function has a length that is one more than the length of the original function. For instance:
this is not the case in the current version (<=0.12.4) where
This PR provides the fix and the associated unit test.