Skip to content

Commit 5051295

Browse files
committed
Allow null anyref to initialize tables
1 parent 8f5942e commit 5051295

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/api/src/values.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ impl Val {
141141
// TODO: need to implement this once we actually finalize what
142142
// `anyref` will look like and it's actually implemented to pass it
143143
// to compiled wasm as well.
144-
Val::AnyRef(_) => false,
144+
Val::AnyRef(AnyRef::Ref(_)) | Val::AnyRef(AnyRef::Other(_)) => false,
145+
Val::AnyRef(AnyRef::Null) => true,
145146

146147
// Integers have no association with any particular store, so
147148
// they're always considered as "yes I came from that store",

0 commit comments

Comments
 (0)