Skip to content

Commit 36262ac

Browse files
committed
refactoring of typed arrays, extract ArrayBuffer methods to separate modules, move ArrayBuffer and DataView from typed arrays namespace
1 parent acdd5f7 commit 36262ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+131
-114
lines changed

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ console.log(weakset.has(b)); // => false
11861186
#### ECMAScript: Typed Arrays
11871187
Implementations and fixes `ArrayBuffer`, `DataView`, typed arrays constructors, static and prototype methods. Typed Arrays work only in environments with support descriptors (IE9+), `ArrayBuffer` and `DataView` should work anywhere.
11881188
1189-
Modules [`es.typed.array-buffer`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed.array-buffer.js), [`es.typed.data-view`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed.data-view.js), [`es.typed-array.int8-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.int8-array.js), [`es.typed-array.uint8-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.uint8-array.js), [`es.typed-array.uint8-clamped-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.uint8-clamped-array.js), [`es.typed-array.int16-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.int16-array.js), [`es.typed-array.uint16-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.uint16-array.js), [`es.typed-array.int32-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed.int32-array.js), [`es.typed-array.uint32-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.uint32-array.js), [`es.typed-array.float32-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.float32-array.js), [`es.typed-array.float64-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.float64-array.js), [`es.typed-array.copy-within`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.copy-within.js), [`es.typed-array.every`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.every.js), [`es.typed-array.fill`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.fill.js), [`es.typed-array.filter`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.filter.js), [`es.typed-array.find`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.find.js), [`es.typed-array.find-index`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.find-index.js), [`es.typed-array.for-each`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.for-each.js), [`es.typed-array.from`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.from.js), [`es.typed-array.includes`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.includes.js), [`es.typed-array.index-of`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.index-of.js), [`es.typed-array.iterator`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.iterator.js), [`es.typed-array.last-index-of`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.last-index-of.js), [`es.typed-array.map`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.map.js), [`es.typed-array.of`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.of.js), [`es.typed-array.reduce`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.reduce.js), [`es.typed-array.reduce-right`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.reduce-right.js), [`es.typed-array.reverse`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.reverse.js), [`es.typed-array.set`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.set.js), [`es.typed-array.slice`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.slice.js), [`es.typed-array.some`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.some.js), [`es.typed-array.sort`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.sort.js), [`es.typed-array.subarray`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.subarray.js), [`es.typed-array.to-locale-string`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.to-locale-string.js) and [`es.typed-array.to-string`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.to-string.js).
1189+
Modules [`es.array-buffer.constructor`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.array-buffer.constructor.js), [`es.array-buffer.is-view`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.array-buffer.is-view.js), [`es.array-buffer.slice`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.array-buffer.slice.js), [`es.data-view`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.data-view.js), [`es.typed-array.int8-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.int8-array.js), [`es.typed-array.uint8-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.uint8-array.js), [`es.typed-array.uint8-clamped-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.uint8-clamped-array.js), [`es.typed-array.int16-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.int16-array.js), [`es.typed-array.uint16-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.uint16-array.js), [`es.typed-array.int32-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed.int32-array.js), [`es.typed-array.uint32-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.uint32-array.js), [`es.typed-array.float32-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.float32-array.js), [`es.typed-array.float64-array`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.float64-array.js), [`es.typed-array.copy-within`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.copy-within.js), [`es.typed-array.every`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.every.js), [`es.typed-array.fill`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.fill.js), [`es.typed-array.filter`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.filter.js), [`es.typed-array.find`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.find.js), [`es.typed-array.find-index`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.find-index.js), [`es.typed-array.for-each`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.for-each.js), [`es.typed-array.from`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.from.js), [`es.typed-array.includes`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.includes.js), [`es.typed-array.index-of`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.index-of.js), [`es.typed-array.iterator`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.iterator.js), [`es.typed-array.last-index-of`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.last-index-of.js), [`es.typed-array.map`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.map.js), [`es.typed-array.of`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.of.js), [`es.typed-array.reduce`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.reduce.js), [`es.typed-array.reduce-right`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.reduce-right.js), [`es.typed-array.reverse`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.reverse.js), [`es.typed-array.set`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.set.js), [`es.typed-array.slice`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.slice.js), [`es.typed-array.some`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.some.js), [`es.typed-array.sort`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.sort.js), [`es.typed-array.subarray`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.subarray.js), [`es.typed-array.to-locale-string`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.to-locale-string.js) and [`es.typed-array.to-string`](https://github.com/zloirock/core-js/blob/v3/packages/core-js/modules/es.typed-array.to-string.js).
11901190
```js
11911191
class ArrayBuffer {
11921192
constructor(length: any): ArrayBuffer;
@@ -1270,10 +1270,15 @@ class [
12701270
```
12711271
[*CommonJS entry points:*](#commonjs)
12721272
```
1273+
core-js/es/array-buffer
1274+
core-js/es/data-view
12731275
core-js/es/typed-array
1276+
core-js/features/array-buffer
1277+
core-js/features/array-buffer/constructor
1278+
core-js/features/array-buffer/is-view
1279+
core-js/features/array-buffer/slice
1280+
core-js/features/data-view
12741281
core-js/features/typed-array
1275-
core-js/features/typed-array/array-buffer
1276-
core-js/features/typed-array/data-view
12771282
core-js/features/typed-array/int8-array
12781283
core-js/features/typed-array/uint8-array
12791284
core-js/features/typed-array/uint8-clamped-array

packages/core-js-builder/config.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ module.exports = {
138138
'es.date.to-iso-string',
139139
'es.date.to-string',
140140
'es.date.to-primitive',
141-
'es.typed.array-buffer',
142-
'es.typed.data-view',
141+
'es.array-buffer.constructor',
142+
'es.array-buffer.is-view',
143+
'es.array-buffer.slice',
144+
'es.data-view',
143145
'es.typed-array.int8-array',
144146
'es.typed-array.uint8-array',
145147
'es.typed-array.uint8-clamped-array',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// empty
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// empty

packages/core-js/es/array-buffer.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require('../modules/es.array-buffer.constructor');
2+
require('../modules/es.array-buffer.is-view');
3+
require('../modules/es.array-buffer.slice');
4+
require('../modules/es.object.to-string');
5+
6+
module.exports = require('../internals/path').ArrayBuffer;

packages/core-js/es/data-view.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require('../modules/es.data-view');
2+
3+
module.exports = require('../internals/path').DataView;

packages/core-js/es/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ require('../modules/es.map');
122122
require('../modules/es.set');
123123
require('../modules/es.weak-map');
124124
require('../modules/es.weak-set');
125-
require('../modules/es.typed.array-buffer');
126-
require('../modules/es.typed.data-view');
125+
require('../modules/es.array-buffer.constructor');
126+
require('../modules/es.array-buffer.is-view');
127+
require('../modules/es.array-buffer.slice');
128+
require('../modules/es.data-view');
127129
require('../modules/es.typed-array.int8-array');
128130
require('../modules/es.typed-array.uint8-array');
129131
require('../modules/es.typed-array.uint8-clamped-array');

packages/core-js/es/typed-array.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require('../modules/es.typed.array-buffer');
2-
require('../modules/es.typed.data-view');
31
require('../modules/es.typed-array.int8-array');
42
require('../modules/es.typed-array.uint8-array');
53
require('../modules/es.typed-array.uint8-clamped-array');
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require('../../modules/es.typed.array-buffer');
1+
require('../../modules/es.array-buffer.constructor');
22
require('../../modules/es.object.to-string');
33

44
module.exports = require('../../internals/path').ArrayBuffer;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require('../../modules/es.array-buffer.constructor');
2+
require('../../modules/es.array-buffer.is-view');
3+
require('../../modules/es.array-buffer.slice');
4+
require('../../modules/es.object.to-string');
5+
6+
module.exports = require('../../internals/path').ArrayBuffer;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require('../../modules/es.array-buffer.is-view');
2+
3+
module.exports = require('../../internals/path').ArrayBuffer.isView;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('../../modules/es.array-buffer.slice');
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require('../../modules/es.typed.data-view');
1+
require('../../modules/es.data-view');
22
require('../../modules/es.object.to-string');
33

44
module.exports = require('../../internals/path').DataView;

packages/core-js/features/observable.js

-8
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require('../../modules/es.object.to-string');
2+
require('../../modules/es.string.iterator');
3+
require('../../modules/web.dom-collections.iterator');
4+
require('../../modules/es.promise');
5+
require('../../modules/esnext.symbol.observable');
6+
require('../../modules/esnext.observable');
7+
8+
module.exports = require('../../internals/path').Observable;

packages/core-js/features/typed-array/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require('../../modules/es.typed.array-buffer');
2-
require('../../modules/es.typed.data-view');
31
require('../../modules/es.typed-array.int8-array');
42
require('../../modules/es.typed-array.uint8-array');
53
require('../../modules/es.typed-array.uint8-clamped-array');

packages/core-js/features/weak-map.js

-7
This file was deleted.

packages/core-js/features/weak-set.js

-7
This file was deleted.

packages/core-js/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ require('./modules/es.map');
122122
require('./modules/es.set');
123123
require('./modules/es.weak-map');
124124
require('./modules/es.weak-set');
125-
require('./modules/es.typed.array-buffer');
126-
require('./modules/es.typed.data-view');
125+
require('./modules/es.array-buffer.constructor');
126+
require('./modules/es.array-buffer.is-view');
127+
require('./modules/es.array-buffer.slice');
128+
require('./modules/es.data-view');
127129
require('./modules/es.typed-array.int8-array');
128130
require('./modules/es.typed-array.uint8-array');
129131
require('./modules/es.typed-array.uint8-clamped-array');

packages/core-js/internals/array-buffer-view-core.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ var TYPED_ARRAY_TAG = require('../internals/uid')('TYPED_ARRAY_TAG');
1414

1515
var DataView = global.DataView;
1616
var DataViewPrototype = DataView && DataView.prototype;
17-
var Uint8Array = global.Uint8Array;
18-
var Uint8ArrayPrototype = Uint8Array && Uint8Array.prototype;
17+
var Int8Array = global.Int8Array;
18+
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
1919
var Uint8ClampedArray = global.Uint8ClampedArray;
2020
var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;
21-
var TypedArray = Uint8Array && getPrototypeOf(Uint8Array);
22-
var TypedArrayPrototype = Uint8ArrayPrototype && getPrototypeOf(Uint8ArrayPrototype);
21+
var TypedArray = Int8Array && getPrototypeOf(Int8Array);
22+
var TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);
2323
var ObjectPrototype = Object.prototype;
2424
var isPrototypeOf = ObjectPrototype.isPrototypeOf;
2525

@@ -40,7 +40,7 @@ var TypedArrayConstructorsList = {
4040
Float64Array: 8
4141
};
4242

43-
var isArrayBufferView = function (it) {
43+
var isView = function isView(it) {
4444
var klass = classof(it);
4545
return klass === 'DataView' || has(TypedArrayConstructorsList, klass);
4646
};
@@ -66,7 +66,7 @@ var exportProto = function (KEY, property, forced) {
6666
if (global[ARRAY] && has(global[ARRAY].prototype, KEY)) delete global[ARRAY].prototype[KEY];
6767
}
6868
if (!TypedArrayPrototype[KEY] || forced) {
69-
redefine(TypedArrayPrototype, KEY, forced ? property : Uint8ArrayPrototype[KEY] || property);
69+
redefine(TypedArrayPrototype, KEY, forced ? property : Int8ArrayPrototype[KEY] || property);
7070
}
7171
};
7272

@@ -77,7 +77,7 @@ var exportStatic = function (KEY, property, forced) {
7777
if (global[ARRAY] && has(global[ARRAY], KEY)) delete global[ARRAY][KEY];
7878
}
7979
if (!TypedArray[KEY] || forced) {
80-
redefine(TypedArray, KEY, forced ? property : Uint8Array[KEY] || property);
80+
redefine(TypedArray, KEY, forced ? property : Int8Array[KEY] || property);
8181
}
8282
};
8383

@@ -129,7 +129,7 @@ module.exports = {
129129
aTypedArrayConstructor: aTypedArrayConstructor,
130130
exportProto: exportProto,
131131
exportStatic: exportStatic,
132-
isArrayBufferView: isArrayBufferView,
132+
isView: isView,
133133
isTypedArray: isTypedArray,
134134
TypedArray: TypedArray,
135135
TypedArrayPrototype: TypedArrayPrototype
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict';
2+
var ARRAY_BUFFER = 'ArrayBuffer';
3+
var ArrayBuffer = require('../internals/typed-buffer')[ARRAY_BUFFER];
4+
var NativeArrayBuffer = require('../internals/global')[ARRAY_BUFFER];
5+
6+
require('../internals/export')({ global: true, forced: NativeArrayBuffer !== ArrayBuffer }, {
7+
ArrayBuffer: ArrayBuffer
8+
});
9+
10+
require('../internals/set-species')(ARRAY_BUFFER);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
2+
3+
// `ArrayBuffer.isView` method
4+
// https://tc39.github.io/ecma262/#sec-arraybuffer.isview
5+
require('../internals/export')({
6+
target: 'ArrayBuffer', stat: true, forced: !ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS
7+
}, { isView: ArrayBufferViewCore.isView });
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
'use strict';
2+
var TypedBufferModule = require('../internals/typed-buffer');
3+
var anObject = require('../internals/an-object');
4+
var toAbsoluteIndex = require('../internals/to-absolute-index');
5+
var toLength = require('../internals/to-length');
6+
var speciesConstructor = require('../internals/species-constructor');
7+
var ArrayBuffer = TypedBufferModule.ArrayBuffer;
8+
var DataView = TypedBufferModule.DataView;
9+
var nativeArrayBufferSlice = ArrayBuffer.prototype.slice;
10+
11+
var INCORRECT_SLICE = require('../internals/fails')(function () {
12+
return !new ArrayBuffer(2).slice(1, undefined).byteLength;
13+
});
14+
15+
require('../internals/export')({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
16+
// 24.1.4.3 ArrayBuffer.prototype.slice(start, end)
17+
slice: function slice(start, end) {
18+
if (nativeArrayBufferSlice !== undefined && end === undefined) {
19+
return nativeArrayBufferSlice.call(anObject(this), start); // FF fix
20+
}
21+
var length = anObject(this).byteLength;
22+
var first = toAbsoluteIndex(start, length);
23+
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
24+
var result = new (speciesConstructor(this, ArrayBuffer))(toLength(fin - first));
25+
var viewSource = new DataView(this);
26+
var viewTarget = new DataView(result);
27+
var index = 0;
28+
while (first < fin) {
29+
viewTarget.setUint8(index++, viewSource.getUint8(first++));
30+
} return result;
31+
}
32+
});

packages/core-js/modules/es.typed-array.float32-array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require('../internals/typed-array')('Float32', 4, function (init) {
1+
require('../internals/typed-array-constructor')('Float32', 4, function (init) {
22
return function Float32Array(data, byteOffset, length) {
33
return init(this, data, byteOffset, length);
44
};

packages/core-js/modules/es.typed-array.float64-array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require('../internals/typed-array')('Float64', 8, function (init) {
1+
require('../internals/typed-array-constructor')('Float64', 8, function (init) {
22
return function Float64Array(data, byteOffset, length) {
33
return init(this, data, byteOffset, length);
44
};

packages/core-js/modules/es.typed-array.int16-array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require('../internals/typed-array')('Int16', 2, function (init) {
1+
require('../internals/typed-array-constructor')('Int16', 2, function (init) {
22
return function Int16Array(data, byteOffset, length) {
33
return init(this, data, byteOffset, length);
44
};

packages/core-js/modules/es.typed-array.int32-array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require('../internals/typed-array')('Int32', 4, function (init) {
1+
require('../internals/typed-array-constructor')('Int32', 4, function (init) {
22
return function Int32Array(data, byteOffset, length) {
33
return init(this, data, byteOffset, length);
44
};

0 commit comments

Comments
 (0)