Skip to content

Commit c9b4d14

Browse files
authored
Switch to context slot 0 for async (#1280)
Slot 1 is no longer valid
1 parent a63fcd2 commit c9b4d14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/guest-rust/rt/src/async_support.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ fn context_get() -> *mut u8 {
444444
#[cfg(target_arch = "wasm32")]
445445
#[link(wasm_import_module = "$root")]
446446
extern "C" {
447-
#[link_name = "[context-get-1]"]
447+
#[link_name = "[context-get-0]"]
448448
fn get() -> *mut u8;
449449
}
450450

@@ -460,7 +460,7 @@ unsafe fn context_set(value: *mut u8) {
460460
#[cfg(target_arch = "wasm32")]
461461
#[link(wasm_import_module = "$root")]
462462
extern "C" {
463-
#[link_name = "[context-set-1]"]
463+
#[link_name = "[context-set-0]"]
464464
fn set(value: *mut u8);
465465
}
466466

0 commit comments

Comments
 (0)