0

The next code returns a Maximum call stack size error:

var array...
String.fromCharCode.apply(null, array)

In Converting array buffer to string - Maximum call stack size exceeded there is an answer for Chrome, but I need it for IE.

(IE does not support reduce function)

s-s
  • 382
  • 2
  • 12

1 Answers1

0

The problem was that the arry too long.

So in this case I change to native loop and it don't fail to maximum recursive:

for (let i = 0; i < array.length; i++) {
     binaryString += String.fromCharCode(array[i])}
s-s
  • 382
  • 2
  • 12