We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
primordials.uncurryThis
1 parent 01213c7 commit 1db3772Copy full SHA for 1db3772
lib/internal/per_context/primordials.js
@@ -13,10 +13,10 @@
13
// by the native module compiler.
14
15
// `uncurryThis` is equivalent to `func => Function.prototype.call.bind(func)`.
16
-// It is using `call.bind(bind, call)` to avoid using `Function.prototype.bind`
17
-// after it may have been mutated by users.
+// It is using `bind.bind(call)` to avoid using `Function.prototype.bind`
+// and `Function.prototype.call` after it may have been mutated by users.
18
const { bind, call } = Function.prototype;
19
-const uncurryThis = call.bind(bind, call);
+const uncurryThis = bind.bind(call);
20
primordials.uncurryThis = uncurryThis;
21
22
function copyProps(src, dest) {
0 commit comments