Skip to content

Commit

Permalink
Allow null anyref to initialize tables
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 2, 2020
1 parent 8f5942e commit 5051295
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/api/src/values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ impl Val {
// TODO: need to implement this once we actually finalize what
// `anyref` will look like and it's actually implemented to pass it
// to compiled wasm as well.
Val::AnyRef(_) => false,
Val::AnyRef(AnyRef::Ref(_)) | Val::AnyRef(AnyRef::Other(_)) => false,
Val::AnyRef(AnyRef::Null) => true,

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

0 comments on commit 5051295

Please sign in to comment.