Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

es.typed-array.to-locale-string.js 1.0KB

123456789101112131415161718192021222324252627
  1. 'use strict';
  2. var global = require('../internals/global');
  3. var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
  4. var fails = require('../internals/fails');
  5. var Int8Array = global.Int8Array;
  6. var aTypedArray = ArrayBufferViewCore.aTypedArray;
  7. var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
  8. var $toLocaleString = [].toLocaleString;
  9. var $slice = [].slice;
  10. // iOS Safari 6.x fails here
  11. var TO_LOCALE_STRING_BUG = !!Int8Array && fails(function () {
  12. $toLocaleString.call(new Int8Array(1));
  13. });
  14. var FORCED = fails(function () {
  15. return [1, 2].toLocaleString() != new Int8Array([1, 2]).toLocaleString();
  16. }) || !fails(function () {
  17. Int8Array.prototype.toLocaleString.call([1, 2]);
  18. });
  19. // `%TypedArray%.prototype.toLocaleString` method
  20. // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring
  21. exportTypedArrayMethod('toLocaleString', function toLocaleString() {
  22. return $toLocaleString.apply(TO_LOCALE_STRING_BUG ? $slice.call(aTypedArray(this)) : aTypedArray(this), arguments);
  23. }, FORCED);