3 ms·
It sucks, there is no way to view the code in Chrome DevTools. The WASM file isn't listed in DevTools "source" tab at all. https://aochagavia.github.io/js/rock
by frik 9y ago
It sucks, there is no way to view the code in Chrome DevTools. The WASM file isn't listed in DevTools "source" tab at all.
https://aochagavia.github.io/js/rocket.wasm https://aochagavia.github.io/js/rocket.wasm
A binary blob, that cannot be viewed except with an offline hexeditor.
WASM sucks. Please remove support and go back to ASM.js, at least it was readable and fast. Or transpile to JS in the first place. Thanks for destroying the open web.
- maffydub 9y agoIt's listed in Chrome for me. If I go to https://www.hellorust.com/demos/add/index.html https://www.hellorust.com/demos/add/index.html, bring up the "Sources tab under Chrome Developer Tools and click on "Run", then a "wasm" item appears - clicking on that shows me the disassembly. Do you not see a "wasm" item? While WebAssembly clearly isn't as readable as non-minified JavaScript, it's probably not much worse than minified Javascript, and I really can't see any difference from a readability perspective between this and ASM.js.
- diggan 9y agoAdding another comment about that this is supported in Firefox as well. Using https://www.hellorust.com/demos/sha1/index.html https://www.hellorust.com/demos/sha1/index.html as a example, I can see the following: https://i.imgur.com/rnOtuty.png https://i.imgur.com/rnOtuty.png
- Bob2018 9y agoMaking it difficult to decompile the source code is a feature not a bug.