'Only getting RangeError when Chrome Developer Tools is closed

So I have this weird error where the script stops executing with RangeError: Maximum call stack size exceeded when I launch it normally, but when I open the Developer Tools and launch it, it loads up perfectly well.

It only happens in Chrome/webkit based browser; it works perfectly fine in firefox. I don't have any code to post here because it points to compiled wasm code (that wasn't written by me).

But what I can't understand is that why it works in Firefox, and on Chrome (with dev tools open) but doesn't work normally in chrome.

Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source