not all platforms implement TypedArray.slice

This commit is contained in:
Bart Butler 2017-03-28 11:44:04 -07:00
parent 62c24ed227
commit a1ff93f1fc

View File

@ -279,7 +279,7 @@ export default {
j = bin.length; j = bin.length;
for (var i = 0; i < j; i += bs) { 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(''); return result.join('');
}, },