main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 2 weeks ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
775 bytes
|
Rev | Line | |
---|
[79a0317] | 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 | // MS Edge argumentsList argument is optional
|
---|
| 9 | var OPTIONAL_ARGUMENTS_LIST = !fails(function () {
|
---|
| 10 | // eslint-disable-next-line es/no-reflect -- required for testing
|
---|
| 11 | Reflect.apply(function () { /* empty */ });
|
---|
| 12 | });
|
---|
| 13 |
|
---|
| 14 | // `Reflect.apply` method
|
---|
| 15 | // https://tc39.es/ecma262/#sec-reflect.apply
|
---|
| 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 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.