You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm bundling some code from mathjs which uses unicode variable names 🥲 . In order to use this code for an inline browser target, I have to set enableUnicode: true so it can base64 encode/decode it properly. I understand this makes the size much larger.
It builds ok, but when I run it in a browser I see RangeError: Maximum call stack size exceeded in the base64 decode logic. The stacktrace indicates it occurs at the invocation of String.fromCharCode.apply() here:
I'm bundling some code from
mathjs
which uses unicode variable names 🥲 . In order to use this code for an inline browser target, I have to setenableUnicode: true
so it can base64 encode/decode it properly. I understand this makes the size much larger.It builds ok, but when I run it in a browser I see
RangeError: Maximum call stack size exceeded
in the base64 decode logic. The stacktrace indicates it occurs at the invocation ofString.fromCharCode.apply()
here:rollup-plugin-web-worker-loader/src/helper/browser/createBase64WorkerFactory.js
Line 8 in 48df453
It sounds like the modern TextDecoder API is able to perform this decoding without the arguments limit. I will make a PR fix.
The text was updated successfully, but these errors were encountered: