You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
488 B
17 lines
488 B
'use strict';
|
|
|
|
var bind = require('function-bind');
|
|
|
|
var GetIntrinsic = require('../GetIntrinsic');
|
|
|
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
|
|
module.exports = function callBind() {
|
|
return $reflectApply(bind, $call, arguments);
|
|
};
|
|
|
|
module.exports.apply = function applyBind() {
|
|
return $reflectApply(bind, $apply, arguments);
|
|
};
|
|
|