diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-04-23 15:39:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-23 15:39:36 -0700 |
| commit | 2dbcc03fb80e0688bba651821db6488cf950404c (patch) | |
| tree | 9d5bfa6e85d587d8373bc99a8153c75093ae1a90 /src/Module.zig | |
| parent | 42ee364e7b698822a69cba4cd2bda17868657e05 (diff) | |
| parent | 6c1ab376ddcdbb05610487e5b813d42ff37da40d (diff) | |
| download | zig-2dbcc03fb80e0688bba651821db6488cf950404c.tar.gz zig-2dbcc03fb80e0688bba651821db6488cf950404c.zip | |
Merge pull request #15405 from Luukdegram/wasm
wasm: implement more runtime safety checks
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig index fa91e8c1ed..27f7b24e7a 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -6626,7 +6626,7 @@ pub fn backendSupportsFeature(mod: Module, feature: Feature) bool { .safety_check_formatted => mod.comp.bin_file.options.use_llvm, .error_return_trace => mod.comp.bin_file.options.use_llvm, .is_named_enum_value => mod.comp.bin_file.options.use_llvm, - .error_set_has_value => mod.comp.bin_file.options.use_llvm, + .error_set_has_value => mod.comp.bin_file.options.use_llvm or mod.comp.bin_file.options.target.isWasm(), .field_reordering => mod.comp.bin_file.options.use_llvm, }; } |
