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
373 B

4 years ago
  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. };