X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fcore-js%2Fmodules%2Fes.typed-array.to-locale-string.js;h=f3baf21a150227545f3133d8cb4d93bdedabe4f7;hp=c6712cfe4a825946be9d428356462fa63815ebe5;hb=3be0a9efc698a9570a44456009afc6014812625a;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.typed-array.to-locale-string.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.typed-array.to-locale-string.js index c6712cfe..f3baf21a 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.typed-array.to-locale-string.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.typed-array.to-locale-string.js @@ -1,13 +1,14 @@ 'use strict'; var global = require('../internals/global'); +var apply = require('../internals/function-apply'); var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); var fails = require('../internals/fails'); +var arraySlice = require('../internals/array-slice'); var Int8Array = global.Int8Array; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; var $toLocaleString = [].toLocaleString; -var $slice = [].slice; // iOS Safari 6.x fails here var TO_LOCALE_STRING_BUG = !!Int8Array && fails(function () { @@ -23,5 +24,9 @@ var FORCED = fails(function () { // `%TypedArray%.prototype.toLocaleString` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring exportTypedArrayMethod('toLocaleString', function toLocaleString() { - return $toLocaleString.apply(TO_LOCALE_STRING_BUG ? $slice.call(aTypedArray(this)) : aTypedArray(this), arguments); + return apply( + $toLocaleString, + TO_LOCALE_STRING_BUG ? arraySlice(aTypedArray(this)) : aTypedArray(this), + arraySlice(arguments) + ); }, FORCED);