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.

callBind.js 373B

1234567891011121314151617
  1. 'use strict';
  2. var bind = require('function-bind');
  3. var GetIntrinsic = require('../GetIntrinsic');
  4. var $Function = GetIntrinsic('%Function%');
  5. var $apply = $Function.apply;
  6. var $call = $Function.call;
  7. module.exports = function callBind() {
  8. return bind.apply($call, arguments);
  9. };
  10. module.exports.apply = function applyBind() {
  11. return bind.apply($apply, arguments);
  12. };