Skip to content

Commit

Permalink
FIXES bytecodealliance#137: make calling wasm from python 7x faster
Browse files Browse the repository at this point in the history
  • Loading branch information
muayyad-alsadi committed Apr 5, 2023
1 parent 0388b16 commit 4cd48d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wasmtime/_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def val_setter(dst: wasmtime_val_raw_t, attr: str, val: "IntoVal") -> None:
# TODO: validate same val._func.store_id
casted = val._func.index
else:
raise RuntimeError("foo")
raise RuntimeError("expecting param of type funcref got " + type(val).__name__)
else:
if isinstance(val, Val):
if val._raw:
Expand Down

0 comments on commit 4cd48d3

Please sign in to comment.