Skip to content

Add new check option to ReadWasmOptions, with test.#53

Merged
CountBleck merged 3 commits into
AssemblyScript:mainfrom
wasmgroundup:main
Apr 11, 2025
Merged

Add new check option to ReadWasmOptions, with test.#53
CountBleck merged 3 commits into
AssemblyScript:mainfrom
wasmgroundup:main

Conversation

@pdubroy
Copy link
Copy Markdown
Contributor

@pdubroy pdubroy commented Apr 10, 2025

The latest nightly includes a new option in wasm2wat — you can pass check: false to allow invalid modules to be loaded, similar to passing --no-check in the wasm2wat CLI. Original commit here: WebAssembly/wabt@5fdc745

This PR updates ReadWasmOptions to include the new check option, and adds a small test.

@pdubroy pdubroy changed the title Add new check option to ``ReadWasmOptions, with test. Add new check option to ReadWasmOptions, with test. Apr 10, 2025
@pdubroy
Copy link
Copy Markdown
Contributor Author

pdubroy commented Apr 10, 2025

Also, maybe worth bumping the version number for this?

@CountBleck
Copy link
Copy Markdown
Member

We seem to just follow WABT's versioning, so a version bump won't be needed.

@pdubroy
Copy link
Copy Markdown
Contributor Author

pdubroy commented Apr 11, 2025

@CountBleck Ah, ok, didn't realize that.

Are you able to merge this? It's a pretty trivial change but it would be nice to keep the wabt.js types up to date with upstream.

Comment thread README.md Outdated
Co-authored-by: CountBleck <Mr.YouKnowWhoIAm@protonmail.com>
@CountBleck CountBleck merged commit 4822075 into AssemblyScript:main Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants