Skip to content

Commit

Permalink
refactor: simplify expression. (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangenming authored Dec 30, 2021
1 parent 7b9e113 commit b64a3a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core-js/internals/function-uncurry-this.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
var FunctionPrototype = Function.prototype;
var bind = FunctionPrototype.bind;
var call = FunctionPrototype.call;
var callBind = bind && bind.bind(call);
var callBind = bind && bind.bind(call, call);

module.exports = bind ? function (fn) {
return fn && callBind(call, fn);
return fn && callBind(fn);
} : function (fn) {
return fn && function () {
return call.apply(fn, arguments);
Expand Down

0 comments on commit b64a3a9

Please sign in to comment.