diff options
Diffstat (limited to 'node_modules/es-abstract/2015/Invoke.js')
-rw-r--r-- | node_modules/es-abstract/2015/Invoke.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/node_modules/es-abstract/2015/Invoke.js b/node_modules/es-abstract/2015/Invoke.js deleted file mode 100644 index 769f0e3..0000000 --- a/node_modules/es-abstract/2015/Invoke.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -var GetIntrinsic = require('../GetIntrinsic'); - -var $TypeError = GetIntrinsic('%TypeError%'); - -var $arraySlice = require('../helpers/callBound')('Array.prototype.slice'); - -var Call = require('./Call'); -var GetV = require('./GetV'); -var IsPropertyKey = require('./IsPropertyKey'); - -// https://ecma-international.org/ecma-262/6.0/#sec-invoke - -module.exports = function Invoke(O, P) { - if (!IsPropertyKey(P)) { - throw new $TypeError('P must be a Property Key'); - } - var argumentsList = $arraySlice(arguments, 2); - var func = GetV(O, P); - return Call(func, O, argumentsList); -}; |