source: imaps-frontend/node_modules/core-js/modules/es.reflect.apply.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 775 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var functionApply = require('../internals/function-apply');
4var aCallable = require('../internals/a-callable');
5var anObject = require('../internals/an-object');
6var fails = require('../internals/fails');
7
8// MS Edge argumentsList argument is optional
9var 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.