-
-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: reduce of empty array with no initial value #74
Labels
Comments
Thanks for the report! |
No problem.
While MathJax suits my current purpose, ideally I'd like to see a MathML to HTML translator (String -> String) that could be executed in a Web Worker, i.e., no DOM. Is this a usage scenario that mj3 (or some piece of it) would work for?
|
Further testing on OSX shows this seems to only be a problem on Chrome (V62). Both Safari and Firefox (current versions) are fine. |
FWIW, I saw it on both Chrome and Firefox on Linux. |
Yes; my bad. It happens everywhere. I'll leave the diagnosis to the experts. |
The |
dpvc
added a commit
that referenced
this issue
Mar 5, 2018
Add initial value to reduce() calls to avoid problems with empty arrays. #74
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TypeError: reduce of empty array with no initial value
generated using Chrome/OSX with mj3-demos-master/mj3-mml2html-global.html
with input:
This is the simplest case but others also fail in similar way, e.g.,:
Full traceback:
The text was updated successfully, but these errors were encountered: