Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def test_smoke(self):
config.wasm_multi_value = True
config.wasm_multi_memory = True
config.wasm_memory64 = True
config.wasm_exceptions = True
config.cranelift_debug_verifier = True
config.strategy = "cranelift"
config.strategy = "auto"
Expand Down
12 changes: 12 additions & 0 deletions wasmtime/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,18 @@ def wasm_relaxed_simd_deterministic(self, enable: bool) -> None:
raise TypeError('expected a bool')
ffi.wasmtime_config_wasm_relaxed_simd_deterministic_set(self.ptr(), enable)

@setter_property
def wasm_exceptions(self, enable: bool) -> None:
"""
Configures whether the wasm [exceptions proposal] is enabled.

[exceptions proposal]: https://github.com/WebAssembly/exception-handling
"""

if not isinstance(enable, bool):
raise TypeError('expected a bool')
ffi.wasmtime_config_wasm_exceptions_set(self.ptr(), enable)

@setter_property
def strategy(self, strategy: str) -> None:
"""
Expand Down