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.

typed-array-constructors-require-wrappers.js 884B

12345678910111213141516171819202122
  1. /* eslint-disable no-new -- required for testing */
  2. var global = require('../internals/global');
  3. var fails = require('../internals/fails');
  4. var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
  5. var NATIVE_ARRAY_BUFFER_VIEWS = require('../internals/array-buffer-view-core').NATIVE_ARRAY_BUFFER_VIEWS;
  6. var ArrayBuffer = global.ArrayBuffer;
  7. var Int8Array = global.Int8Array;
  8. module.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () {
  9. Int8Array(1);
  10. }) || !fails(function () {
  11. new Int8Array(-1);
  12. }) || !checkCorrectnessOfIteration(function (iterable) {
  13. new Int8Array();
  14. new Int8Array(null);
  15. new Int8Array(1.5);
  16. new Int8Array(iterable);
  17. }, true) || fails(function () {
  18. // Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill
  19. return new Int8Array(new ArrayBuffer(2), 1, undefined).length !== 1;
  20. });