mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 22:28:21 +00:00
Always return true for is_from_store
This commit is contained in:
4
lib/api/src/js/externals/function.rs
vendored
4
lib/api/src/js/externals/function.rs
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
)*
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user