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
if callback in fnCb looks like cb(arg1); - resultSelector will work as function (arg1) {...}
if callback in fnCb looks like cb(arg1, arg2, ..., argN) - resultSelector will work as function (arg1, arg2, ..., argN) {...}
This is expected behavior, the problem is:
if callback in fnCb looks like cb( [ val1, val2, ..., valN ])(single argument, which is array) - resultSelector will work as function (val1, val2, ..., valN) {...}
Expected behavior
for callback call which looks like cb( [ val1, val2, ..., valN ])(single argument, which is array) - resultSelector should work like funciton (arg1) {...}, where arg1 is [ val1, val2, ..., valN ]
Describe the bug
bindCallback(fnCb, resultSelector);
if callback in
fnCb
looks likecb(arg1);
-resultSelector
will work asfunction (arg1) {...}
if callback in
fnCb
looks likecb(arg1, arg2, ..., argN)
-resultSelector
will work asfunction (arg1, arg2, ..., argN) {...}
This is expected behavior, the problem is:
if callback in
fnCb
looks likecb( [ val1, val2, ..., valN ])
(single argument, which is array) -resultSelector
will work asfunction (val1, val2, ..., valN) {...}
Expected behavior
for callback call which looks like
cb( [ val1, val2, ..., valN ])
(single argument, which is array) -resultSelector
should work likefunciton (arg1) {...}
, wherearg1
is[ val1, val2, ..., valN ]
Reproduction code
Reproduction URL
No response
Version
7.8.1
Environment
nodejs 21.4.0
Additional context
No response
The text was updated successfully, but these errors were encountered: