Skip to content
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

Check WASM module properties exist before using #13

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

ianthomas23
Copy link
Member

For WASM modules containing commands, we currently use the properties callMain, ENV, FS and getEnvStrings. callMain is always required as otherwise we can't call the command, but the others are optional and are only required for commands that access the filesystem (FS) or get/set environment variables (ENV, getEnvStrings). The PR checks for the existence of these properties before using them, throws an error if callMain is missing but otherwise continues if any of the others are missing.

@ianthomas23 ianthomas23 added the enhancement New feature or request label Jul 11, 2024
@ianthomas23 ianthomas23 merged commit a927503 into main Jul 12, 2024
4 checks passed
@ianthomas23 ianthomas23 deleted the check_wasm_module_props branch July 12, 2024 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant