Using Node 12.19.0:
When binding a function with AsyncResource.bind, the arguments are not forwarded.
I had to write this workaround to make it work:
functionbindWorkAround(cb){AsyncResource.bind(invokeOriginal);let_arguments;returnonData;functiononData(){_arguments=arguments;invokeOriginal();}functioninvokeOriginal(){cb.apply(null,_arguments);}}
Using Node 12.19.0:
When binding a function with AsyncResource.bind, the arguments are not forwarded.
I had to write this workaround to make it work: