massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / es.reflect.apply.js
1 var $ = require('../internals/export');
2 var functionApply = require('../internals/function-apply');
3 var aCallable = require('../internals/a-callable');
4 var anObject = require('../internals/an-object');
5 var fails = require('../internals/fails');
6
7 // MS Edge argumentsList argument is optional
8 var OPTIONAL_ARGUMENTS_LIST = !fails(function () {
9   // eslint-disable-next-line es/no-reflect -- required for testing
10   Reflect.apply(function () { /* empty */ });
11 });
12
13 // `Reflect.apply` method
14 // https://tc39.es/ecma262/#sec-reflect.apply
15 $({ target: 'Reflect', stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, {
16   apply: function apply(target, thisArgument, argumentsList) {
17     return functionApply(aCallable(target), thisArgument, anObject(argumentsList));
18   }
19 });