Opal-Estate-Pro/node_modules/es-abstract/helpers/callBind.js

18 lines
373 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
'use strict';
var bind = require('function-bind');
var GetIntrinsic = require('../GetIntrinsic');
var $Function = GetIntrinsic('%Function%');
var $apply = $Function.apply;
var $call = $Function.call;
module.exports = function callBind() {
return bind.apply($call, arguments);
};
module.exports.apply = function applyBind() {
return bind.apply($apply, arguments);
};