source: trip-planner-front/node_modules/core-js/internals/typed-array-constructors-require-wrappers.js@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 884 bytes
Line 
1/* eslint-disable no-new -- required for testing */
2var global = require('../internals/global');
3var fails = require('../internals/fails');
4var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
5var NATIVE_ARRAY_BUFFER_VIEWS = require('../internals/array-buffer-view-core').NATIVE_ARRAY_BUFFER_VIEWS;
6
7var ArrayBuffer = global.ArrayBuffer;
8var Int8Array = global.Int8Array;
9
10module.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () {
11 Int8Array(1);
12}) || !fails(function () {
13 new Int8Array(-1);
14}) || !checkCorrectnessOfIteration(function (iterable) {
15 new Int8Array();
16 new Int8Array(null);
17 new Int8Array(1.5);
18 new Int8Array(iterable);
19}, true) || fails(function () {
20 // Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill
21 return new Int8Array(new ArrayBuffer(2), 1, undefined).length !== 1;
22});
Note: See TracBrowser for help on using the repository browser.