Skip to content

Commit e258e35

Browse files
committed
fixup! stack-switching: add stub Val::ContRef
1 parent e929cb7 commit e258e35

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/wasmtime/src/runtime/externals/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl Global {
276276
}
277277
Val::ContRef(None) => {
278278
// Allow null continuation references for globals - these are just placeholders
279-
// Non-null references are not supported yet
279+
definition.write_gc_ref(&mut store, None);
280280
}
281281
Val::ContRef(Some(_)) => {
282282
// TODO(#10248): Implement non-null global continuation reference handling

crates/wasmtime/src/runtime/trampoline/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub fn generate_global_export(
7272
}
7373
Val::ContRef(None) => {
7474
// Allow null continuation references for trampoline globals - these are just placeholders
75-
// Non-null references are not supported yet
75+
global.write_gc_ref(&mut store, None);
7676
}
7777
Val::ContRef(Some(_)) => {
7878
// TODO(#10248): Implement non-null trampoline continuation reference handling

0 commit comments

Comments
 (0)