Skip to content

lib: simplify `primordials.uncurryThis`

While working on https://github.com/nodejs/node/pull/36865, it occurred to me that:

Function.prototype.call.bind(Function.prototype.bind, Function.prototype.call)

is equivalent to:

Function.prototype.bind.bind(Function.prototype.call)

except that it saves us one indirection through Function.prototype.call.

Merge request reports

Loading