-
Notifications
You must be signed in to change notification settings - Fork 10
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
Site is broken b/c of JS stack overflow #33
Comments
Some progress on this: I suspect the problem comes from the Specifically, I think the maximum call stack size is being exceeded while running that file, causing it to fail, and that variable to be undefined. To test this, I tried running that file with Node.js:
Increasing the stack size to 600 enables the file to load without problem. So, the stack size on iOS Safari must be smaller than 600 and generally smaller than other browsers. The remaining question is, which part of the Scala.js/mdoc.js/CE3/fs2/http4s stack is specifically to blame for this 😉 |
I wouldn't be shocked if MimeDB is to blame for this too ... |
Here's another interesting twist: if the node --stack_size=80 mdocs/target/mdoc/README.md.js So, the problem is specific to Next bit of trickyness, is to tease apart SJS full optimization phase from the Google Closure Compiler phase. |
Following up on this, by locally publishing mdoc with https://github.com/scalameta/mdoc/blob/6a5be8cbde534662b27f1b68d2e12384a31216c9/mdoc-js/src/main/scala/mdoc/modifiers/JsModifier.scala#L80 adjusted I was able to do |
As reported by discord friends.
Linking to:
Can't find variable: mdoc_js_run0
on iOS scalameta/mdoc#577mdoc.js
andREADME.md.js
scripts included twice in the page scalameta/mdoc#579The text was updated successfully, but these errors were encountered: