Skip to content

Commit 01ec833

Browse files
committed
Support environments lacking typed array globals
1 parent 25f1e1e commit 01ec833

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

lib/node_modules/@stdlib/types/array/float32/lib/float32array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
// EXPORTS //
44

5-
module.exports = Float32Array;
5+
module.exports = ( typeof Float32Array === 'function' ) ? Float32Array : null;

lib/node_modules/@stdlib/types/array/float64/lib/float64array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
// EXPORTS //
44

5-
module.exports = Float64Array;
5+
module.exports = ( typeof Float64Array === 'function' ) ? Float64Array : null;

lib/node_modules/@stdlib/types/array/int16/lib/int16array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
// EXPORTS //
44

5-
module.exports = Int16Array;
5+
module.exports = ( typeof Int16Array === 'function' ) ? Int16Array : null;

lib/node_modules/@stdlib/types/array/int32/lib/int32array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
// EXPORTS //
44

5-
module.exports = Int32Array;
5+
module.exports = ( typeof Int32Array === 'function' ) ? Int32Array : null;

lib/node_modules/@stdlib/types/array/int8/lib/int8array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
// EXPORTS //
44

5-
module.exports = Int8Array;
5+
module.exports = ( typeof Int8Array === 'function' ) ? Int8Array : null;

lib/node_modules/@stdlib/types/array/uint16/lib/uint16array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
// EXPORTS //
44

5-
module.exports = Uint16Array;
5+
module.exports = ( typeof Uint16Array === 'function' ) ? Uint16Array : null;

lib/node_modules/@stdlib/types/array/uint32/lib/uint32array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
// EXPORTS //
44

5-
module.exports = Uint32Array;
5+
module.exports = ( typeof Uint32Array === 'function' ) ? Uint32Array : null;

lib/node_modules/@stdlib/types/array/uint8/lib/uint8array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
// EXPORTS //
44

5-
module.exports = Uint8Array;
5+
module.exports = ( typeof Uint8Array === 'function' ) ? Uint8Array : null;

lib/node_modules/@stdlib/types/array/uint8c/lib/uint8clampedarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
// EXPORTS //
44

5-
module.exports = Uint8ClampedArray;
5+
module.exports = ( typeof Uint8ClampedArray === 'function' ) ? Uint8ClampedArray : null;

0 commit comments

Comments
 (0)