Sha256: 4d62436a931d715240be90f0c47515cd3c0fc08a983043b6a39d09553aa2a1b2

Contents?: true

Size: 792 Bytes

Versions: 12

Compression:

Stored size: 792 Bytes

Contents

/* eslint-disable no-new */
var global = require('../internals/global');
var fails = require('../internals/fails');
var checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');
var NATIVE_ARRAY_BUFFER_VIEWS = require('../internals/array-buffer-view-core').NATIVE_ARRAY_BUFFER_VIEWS;

var ArrayBuffer = global.ArrayBuffer;
var Int8Array = global.Int8Array;

module.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () {
  Int8Array(1);
}) || !fails(function () {
  new Int8Array(-1);
}) || !checkCorrectnessOfIteration(function (iterable) {
  new Int8Array();
  new Int8Array(null);
  new Int8Array(1.5);
  new Int8Array(iterable);
}, true) || fails(function () {
  // Safari 11 bug
  return new Int8Array(new ArrayBuffer(2), 1, undefined).length !== 1;
});

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/core-js/internals/typed-arrays-constructors-requires-wrappers.js
disco_app-0.18.2 test/dummy/node_modules/core-js/internals/typed-arrays-constructors-requires-wrappers.js
condenser-0.0.8 lib/condenser/processors/node_modules/core-js-pure/internals/typed-arrays-constructors-requires-wrappers.js
jester-data-8.0.0 node_modules/core-js/internals/typed-arrays-constructors-requires-wrappers.js
ezii-os-5.2.1 node_modules/core-js/internals/typed-arrays-constructors-requires-wrappers.js
ezii-os-2.0.1 node_modules/core-js/internals/typed-arrays-constructors-requires-wrappers.js
ezii-os-1.1.0 node_modules/core-js/internals/typed-arrays-constructors-requires-wrappers.js
ezii-os-1.0.0 node_modules/core-js/internals/typed-arrays-constructors-requires-wrappers.js
condenser-0.0.7 lib/condenser/processors/node_modules/core-js-pure/internals/typed-arrays-constructors-requires-wrappers.js
ezii-os-0.0.0.1.0 node_modules/core-js/internals/typed-arrays-constructors-requires-wrappers.js
ezii-os-0.0.0.0.1 node_modules/core-js/internals/typed-arrays-constructors-requires-wrappers.js
condenser-0.0.5 lib/condenser/processors/node_modules/core-js-pure/internals/typed-arrays-constructors-requires-wrappers.js