| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 01213c7 commit 1db3772
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,10 +13,10 @@ | |||
| 13 | 13 | // by the native module compiler. | |
| 14 | 14 | ||
| 15 | 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. | ||
| 16 | + // It is using `bind.bind(call)` to avoid using `Function.prototype.bind` | ||
| 17 | + // and `Function.prototype.call` after it may have been mutated by users. | ||
| 18 | 18 | const { bind, call } = Function.prototype; | |
| 19 | - const uncurryThis = call.bind(bind, call); | ||
| 19 | + const uncurryThis = bind.bind(call); | ||
| 20 | 20 | primordials.uncurryThis = uncurryThis; | |
| 21 | 21 | ||
| 22 | 22 | function copyProps(src, dest) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments