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');
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 */ });
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));