summaryrefslogtreecommitdiff
path: root/src/node_modules/es-abstract/2019/Call.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_modules/es-abstract/2019/Call.js')
-rw-r--r--src/node_modules/es-abstract/2019/Call.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/node_modules/es-abstract/2019/Call.js b/src/node_modules/es-abstract/2019/Call.js
new file mode 100644
index 0000000..f0f0451
--- /dev/null
+++ b/src/node_modules/es-abstract/2019/Call.js
@@ -0,0 +1,13 @@
+'use strict';
+
+var GetIntrinsic = require('../GetIntrinsic');
+var callBound = require('../helpers/callBound');
+
+var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('%Function.prototype.apply%');
+
+// https://www.ecma-international.org/ecma-262/6.0/#sec-call
+
+module.exports = function Call(F, V) {
+ var args = arguments.length > 2 ? arguments[2] : [];
+ return $apply(F, V, args);
+};