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
{{ message }}
Repository navigation
Huge wall of text printed on uncaught exceptions in Node.js #94
There is a problem that binaryen.js seems to be embodied with in Node.js where the entire minified contents of binaryen.js is printed to the terminal on uncaught exceptions. The issue has been reported in multiple places, and the root of the issue seems to be in Node.js. The Node.js issue hasn't seen any activity.
I'm hoping raising the issue here might lead to some insight, workarounds, or finally getting it fixed in Node.js.
We're aware of this issue (which is ultimately Node's fault). --enable-source-maps used to work, but it stopped working since v16 or maybe v18 (I don't remember off the top of my head, and I don't know why this changed).
I'm pretty sure the problem would be fixed if the Wasm wasn't bundled as a large base64 string, but I don't know whether that'd break existing uses of binaryen.js.
Activity
CountBleck commentedon Jul 16, 2024
We're aware of this issue (which is ultimately Node's fault).
--enable-source-mapsused to work, but it stopped working since v16 or maybe v18 (I don't remember off the top of my head, and I don't know why this changed).I'm pretty sure the problem would be fixed if the Wasm wasn't bundled as a large base64 string, but I don't know whether that'd break existing uses of binaryen.js.
CountBleck commentedon Jul 16, 2024
@lastmjs after playing around with
fnm, Node v15.14.0 prints out the large stack trace, but using--enable-source-maps, I get this instead:This doesn't work for v16.20.2, however;
--enable-source-mapsdoes nothing to fix the issue.CountBleck commentedon Jul 16, 2024
It seems to have broken between v16.17.1 and v16.18.0.
kripken commentedon Jul 18, 2024
With WebAssembly/binaryen#6764 landed, this should be fixed in the next build of binaryen.js, but please verify that and let me know if not.
MaxGraey commentedon Apr 20, 2026
I think this issue has already been resolved