webassemblyjs
webassemblyjs copied to clipboard
Toolchain for WebAssembly
Wabt added the support https://github.com/WebAssembly/wabt/pull/831. We need to wait that wabt.js publishes a new version.
If I take the following `.wat`: ```wat (module (global i32 (i32.const 0)) ) ``` ...and then * compile it with [wat2wasm](https://github.com/AssemblyScript/wabt.js), * parse it to an AST with `wasm-parser` *...
It would be great if you added support for TypeScript users EDIT: I didn't realized there was a [`types`](https://github.com/xtuc/webassemblyjs/tree/master/types) directory. Consider renaming the files from `*.js` to `*.d.ts`?
This problem originates from a [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) application packaged with webpack and the [wasm-pack-plugin](https://github.com/wasm-tool/wasm-pack-plugin). [wasm-bindgen issue #2567](https://github.com/rustwasm/wasm-bindgen/issues/2567) contains details on the error I encountered. It seems that very large function names...
When trying to parse the attached wasm module, webpack throws the above error. When using the wasm-parser api directly, it shows this: ``` Failed to decode custom "name" section @5033477;...
As the title claims, I meet some trouble with running this project in node.js. `(node:12960) Warning: To load an ES module, set "type": "module" in the package.json or use the...
**Describe the bug** When I try to get at form wat code, I'm getting errors **To Reproduce** Steps to reproduce the behavior: 1. My rust code looks like ``` #[no_mangle]...
The [@webassemblyjs/helper-fsm package.json](https://github.com/xtuc/webassemblyjs/blob/master/packages/helper-fsm/package.json) lists `"license": "ISC"`, but I suspect it's probably intended to be MIT: * It doesn't include its own LICENSE file listing out the ISC license, which suggests...
Hi, During fuzzing with [jsfuzz](https://github.com/fuzzitdev/jsfuzz), i found the following bug leading to a memory OOM i.e. DoS of nodejs process: Error: ``` sh $ nodejs crash_wasm_parser_OOM.js [21833:0x3ed48c0] 1757 ms: Scavenge...
Hey, Found the following bug that can be reproduced with: ```javascript const wast = require("@webassemblyjs/wast-parser"); wast.parse('"\u0019g ') Thrown: TypeError: Cannot read property 'charCodeAt' of undefined at isNewLine (/Users/yevgenyp/fuzzitdev/jsfuzz/node_modules/@webassemblyjs/wast-parser/lib/tokenizer.js:33:15) at tokenize...