From a1ff93f1fc6ef475ab7f038865be7f7a1196dc3b Mon Sep 17 00:00:00 2001 From: Bart Butler Date: Tue, 28 Mar 2017 11:44:04 -0700 Subject: [PATCH] not all platforms implement TypedArray.slice --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index a81d3eec..78394ad4 100644 --- a/src/util.js +++ b/src/util.js @@ -279,7 +279,7 @@ export default { j = bin.length; for (var i = 0; i < j; i += bs) { - result.push(String.fromCharCode.apply(String, bin.slice(i, i+bs < j ? i+bs : j))); + result.push(String.fromCharCode.apply(String, bin.subarray(i, i+bs < j ? i+bs : j))); } return result.join(''); },