Skip to content

Commit f00d32a

Browse files
FIXES #137: make calling wasm from python 7x faster
1 parent 68fa2a8 commit f00d32a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wasmtime/_func.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ def __call__(self, store: Storelike, *params: IntoVal) -> Union[IntoVal, Sequenc
124124
# - we set proper types by reading types from ty
125125
# - but not sure about "Values such as externref and funcref are valid within the store being called"
126126
with enter_wasm(store) as trap:
127-
error = None
128-
ffi.wasmtime_func_call_unchecked(
127+
error = ffi.wasmtime_func_call_unchecked(
129128
store._context,
130129
byref(self._func),
131130
vals_raw_ptr,

0 commit comments

Comments
 (0)