Always return true for is_from_store

This commit is contained in:
Felix Schütt
2022-08-24 11:25:22 +02:00
parent 4540e3ba8f
commit 4966ec45ba
3 changed files with 5 additions and 5 deletions

View File

@@ -664,7 +664,7 @@ mod inner {
#[inline]
fn is_from_store(&self, _store: &impl AsStoreRef) -> bool {
self.handle.store_id() == store.as_store_ref().objects().id()
true // Javascript only has one store
}
}
)*
@@ -690,7 +690,7 @@ mod inner {
#[inline]
fn is_from_store(&self, _store: &impl AsStoreRef) -> bool {
self.handle.store_id() == store.as_store_ref().objects().id()
true // Javascript only has one store
}
}
)*

View File

@@ -559,7 +559,7 @@ impl Module {
/// custom sections. That's why an iterator (rather than one element)
/// is returned.
pub fn custom_sections<'a>(&'a self, name: &'a str) -> impl Iterator<Item = Box<[u8]>> + 'a {
unimplemented!()
unimplemented!() // TODO: implement on JavaScript
}
}

View File

@@ -235,8 +235,8 @@ where
}
}
#[inline]
fn is_from_store(&self, store: &impl AsStoreRef) -> bool {
true // TODO ???
fn is_from_store(&self, _store: &impl AsStoreRef) -> bool {
true // in Javascript there are no different stores
}
}