aswi2020vldc-gitlab/templetes/node_modules/es-abstract/helpers/callBind.js @ 143404cb
1 | 3a515b92 | cagy | 'use strict'; |
---|---|---|---|
2 | |||
3 | var bind = require('function-bind'); |
||
4 | |||
5 | var GetIntrinsic = require('../GetIntrinsic'); |
||
6 | |||
7 | var $Function = GetIntrinsic('%Function%'); |
||
8 | var $apply = $Function.apply; |
||
9 | var $call = $Function.call; |
||
10 | |||
11 | module.exports = function callBind() { |
||
12 | return bind.apply($call, arguments); |
||
13 | };
|
||
14 | |||
15 | module.exports.apply = function applyBind() { |
||
16 | return bind.apply($apply, arguments); |
||
17 | };
|