Skip to content

Commit f224bbf

Browse files
committed
Execute polyFill always
1 parent 87efb53 commit f224bbf

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Diff for: src/Data/ArrayBuffer/Typed.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
"use strict";
22

33

4-
exports.polyFill = function polyFill () {
4+
5+
// Lightweight polyfill for ie - see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#Methods_Polyfill
6+
function polyFill () {
57
var typedArrayTypes =
68
[ Int8Array, Uint8Array, Uint8ClampedArray, Int16Array
79
, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array
@@ -15,6 +17,7 @@ exports.polyFill = function polyFill () {
1517
}
1618
};
1719

20+
polyFill();
1821

1922
// module Data.ArrayBuffer.Typed
2023

Diff for: src/Data/ArrayBuffer/Typed.purs

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030

3131

3232
module Data.ArrayBuffer.Typed
33-
( polyFill
34-
, Index, Length
33+
( Index, Length
3534
, buffer, byteOffset, byteLength, length
3635
, class TypedArray
3736
, create, whole, remainder, part, empty, fromArray
@@ -65,9 +64,6 @@ import Prelude (Unit, flip, pure, ($), (&&), (*), (*>), (-), (<$>), (<<<), (<=),
6564
import Type.Proxy (Proxy(..))
6665

6766

68-
-- | Lightweight polyfill for ie - see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#Methods_Polyfill
69-
foreign import polyFill :: Effect Unit
70-
7167
-- | `ArrayBuffer` being mapped by the typed array.
7268
foreign import buffer :: forall a. ArrayView a -> ArrayBuffer
7369

0 commit comments

Comments
 (0)