Sha256: f7c015a9038cd49d31c354856834542e0ee43fc506303182a96a2af33d26aced
Contents?: true
Size: 616 Bytes
Versions: 243
Compression:
Stored size: 616 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var callBound = require('call-bind/callBound'); var $TypeError = GetIntrinsic('%TypeError%'); var IsArray = require('./IsArray'); var $apply = GetIntrinsic('%Reflect.apply%', true) || callBound('Function.prototype.apply'); // https://262.ecma-international.org/6.0/#sec-call module.exports = function Call(F, V) { var argumentsList = arguments.length > 2 ? arguments[2] : []; if (!IsArray(argumentsList)) { throw new $TypeError('Assertion failed: optional `argumentsList`, if provided, must be a List'); } return $apply(F, V, argumentsList); };
Version data entries
243 entries across 27 versions & 2 rubygems