Sha256: c38d84ffeff1e52dd171d346231be9862b6d4e264ee0feefec0ef4b5a4c3bc01

Contents?: true

Size: 992 Bytes

Versions: 9

Compression:

Stored size: 992 Bytes

Contents

'use strict';
var global = require('../internals/global');
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
var fails = require('../internals/fails');

var Int8Array = global.Int8Array;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var $toLocaleString = [].toLocaleString;
var $slice = [].slice;

// iOS Safari 6.x fails here
var TO_LOCALE_STRING_BUG = !!Int8Array && fails(function () {
  $toLocaleString.call(new Int8Array(1));
});

var FORCED = fails(function () {
  return [1, 2].toLocaleString() != new Int8Array([1, 2]).toLocaleString();
}) || !fails(function () {
  Int8Array.prototype.toLocaleString.call([1, 2]);
});

// `%TypedArray%.prototype.toLocaleString` method
// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.tolocalestring
ArrayBufferViewCore.exportProto('toLocaleString', function toLocaleString() {
  return $toLocaleString.apply(TO_LOCALE_STRING_BUG ? $slice.call(aTypedArray(this)) : aTypedArray(this), arguments);
}, FORCED);

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/core-js/modules/es.typed-array.to-locale-string.js
disco_app-0.18.2 test/dummy/node_modules/core-js/modules/es.typed-array.to-locale-string.js
jester-data-8.0.0 node_modules/core-js/modules/es.typed-array.to-locale-string.js
ezii-os-5.2.1 node_modules/core-js/modules/es.typed-array.to-locale-string.js
ezii-os-2.0.1 node_modules/core-js/modules/es.typed-array.to-locale-string.js
ezii-os-1.1.0 node_modules/core-js/modules/es.typed-array.to-locale-string.js
ezii-os-1.0.0 node_modules/core-js/modules/es.typed-array.to-locale-string.js
ezii-os-0.0.0.1.0 node_modules/core-js/modules/es.typed-array.to-locale-string.js
ezii-os-0.0.0.0.1 node_modules/core-js/modules/es.typed-array.to-locale-string.js