Skip to content

Commit 788252c

Browse files
authored
Bump to 42.0.0 (#328)
1 parent 1221889 commit 788252c

4 files changed

Lines changed: 19 additions & 12 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
41.0.0
1+
42.0.0

ci/download-wasmtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# set to "dev" to download the latest or pick a tag from
1414
# https://github.com/bytecodealliance/wasmtime/tags
15-
WASMTIME_VERSION = "v41.0.0"
15+
WASMTIME_VERSION = "v42.0.0"
1616

1717

1818
def main(platform, arch):

tests/test_trap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_frames(self):
4848
2: 0x23 - module!<wasm function 0>
4949
5050
Caused by:
51-
wasm trap: wasm `unreachable` instruction executed\
51+
wasm trap: wasm `unreachable` instruction executed
5252
""")
5353
self.assertEqual(trap.trap_code, TrapCode.UNREACHABLE)
5454

wasmtime/_bindings.py

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2659,9 +2659,9 @@ def wasmtime_context_set_data(context: Any, data: Any) -> None:
26592659
return _wasmtime_context_set_data(context, data) # type: ignore
26602660

26612661
_wasmtime_context_gc = dll.wasmtime_context_gc
2662-
_wasmtime_context_gc.restype = None
2662+
_wasmtime_context_gc.restype = ctypes.POINTER(wasmtime_error_t)
26632663
_wasmtime_context_gc.argtypes = [ctypes.POINTER(wasmtime_context_t)]
2664-
def wasmtime_context_gc(context: Any) -> None:
2664+
def wasmtime_context_gc(context: Any) -> ctypes._Pointer:
26652665
return _wasmtime_context_gc(context) # type: ignore
26662666

26672667
_wasmtime_context_set_fuel = dll.wasmtime_context_set_fuel
@@ -3390,7 +3390,6 @@ class wasmtime_trap_code_enum(Enum):
33903390
WASMTIME_TRAP_CODE_BAD_CONVERSION_TO_INTEGER = auto()
33913391
WASMTIME_TRAP_CODE_UNREACHABLE_CODE_REACHED = auto()
33923392
WASMTIME_TRAP_CODE_INTERRUPT = auto()
3393-
WASMTIME_TRAP_CODE_ALWAYS_TRAP_ADAPTER = auto()
33943393
WASMTIME_TRAP_CODE_OUT_OF_FUEL = auto()
33953394
WASMTIME_TRAP_CODE_ATOMIC_WAIT_NON_SHARED_MEMORY = auto()
33963395
WASMTIME_TRAP_CODE_NULL_REFERENCE = auto()
@@ -3399,7 +3398,21 @@ class wasmtime_trap_code_enum(Enum):
33993398
WASMTIME_TRAP_CODE_CAST_FAILURE = auto()
34003399
WASMTIME_TRAP_CODE_CANNOT_ENTER_COMPONENT = auto()
34013400
WASMTIME_TRAP_CODE_NO_ASYNC_RESULT = auto()
3401+
WASMTIME_TRAP_CODE_UNHANDLED_TAG = auto()
3402+
WASMTIME_TRAP_CODE_CONTINUATION_ALREADY_CONSUMED = auto()
34023403
WASMTIME_TRAP_CODE_DISABLED_OPCODE = auto()
3404+
WASMTIME_TRAP_CODE_ASYNC_DEADLOCK = auto()
3405+
WASMTIME_TRAP_CODE_CANNOT_LEAVE_COMPONENT = auto()
3406+
WASMTIME_TRAP_CODE_CANNOT_BLOCK_SYNC_TASK = auto()
3407+
WASMTIME_TRAP_CODE_INVALID_CHAR = auto()
3408+
WASMTIME_TRAP_CODE_DEBUG_ASSERT_STRING_ENCODING_FINISHED = auto()
3409+
WASMTIME_TRAP_CODE_DEBUG_ASSERT_EQUAL_CODE_UNITS = auto()
3410+
WASMTIME_TRAP_CODE_DEBUG_ASSERT_POINTER_ALIGNED = auto()
3411+
WASMTIME_TRAP_CODE_DEBUG_ASSERT_UPPER_BITS_UNSET = auto()
3412+
WASMTIME_TRAP_CODE_STRING_OUT_OF_BOUNDS = auto()
3413+
WASMTIME_TRAP_CODE_LIST_OUT_OF_BOUNDS = auto()
3414+
WASMTIME_TRAP_CODE_INVALID_DISCRIMINANT = auto()
3415+
WASMTIME_TRAP_CODE_UNALIGNED_POINTER = auto()
34033416

34043417
_wasmtime_trap_new = dll.wasmtime_trap_new
34053418
_wasmtime_trap_new.restype = ctypes.POINTER(wasm_trap_t)
@@ -3431,12 +3444,6 @@ def wasmtime_frame_func_name(arg0: Any) -> ctypes._Pointer:
34313444
def wasmtime_frame_module_name(arg0: Any) -> ctypes._Pointer:
34323445
return _wasmtime_frame_module_name(arg0) # type: ignore
34333446

3434-
_wasmtime_config_async_support_set = dll.wasmtime_config_async_support_set
3435-
_wasmtime_config_async_support_set.restype = None
3436-
_wasmtime_config_async_support_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_bool]
3437-
def wasmtime_config_async_support_set(arg0: Any, arg1: Any) -> None:
3438-
return _wasmtime_config_async_support_set(arg0, arg1) # type: ignore
3439-
34403447
_wasmtime_config_async_stack_size_set = dll.wasmtime_config_async_stack_size_set
34413448
_wasmtime_config_async_stack_size_set.restype = None
34423449
_wasmtime_config_async_stack_size_set.argtypes = [ctypes.POINTER(wasm_config_t), ctypes.c_uint64]

0 commit comments

Comments
 (0)