1 | 'use strict';
|
2 | var $ = require('../internals/export');
|
3 | var functionApply = require('../internals/function-apply');
|
4 | var aCallable = require('../internals/a-callable');
|
5 | var anObject = require('../internals/an-object');
|
6 | var fails = require('../internals/fails');
|
7 |
|
8 |
|
9 | var OPTIONAL_ARGUMENTS_LIST = !fails(function () {
|
10 |
|
11 | Reflect.apply(function () { });
|
12 | });
|
13 |
|
14 |
|
15 |
|
16 | $({ target: 'Reflect', stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, {
|
17 | apply: function apply(target, thisArgument, argumentsList) {
|
18 | return functionApply(aCallable(target), thisArgument, anObject(argumentsList));
|
19 | }
|
20 | });
|