Converting arraybuffer to string : Maximum call stack size exceeded
问题 This is my line of code. var xhr = new XMLHttpRequest(); xhr.open('GET',window.location.href, true); xhr.responseType = "arraybuffer"; xhr.onload = function(event) { debugger; console.log(" coverting array buffer to string "); alert(String.fromCharCode.apply(null, new Uint8Array(this.response))); }; xhr.send(); That request is making to a pdf url which is around 3 MB in size. Read few thread with same error, telling that there must be some recursive call but I do not see any recursive call