diff --git a/lib/api/src/sys/externals/function.rs b/lib/api/src/sys/externals/function.rs index 1bd5f4458..51ba6c52a 100644 --- a/lib/api/src/sys/externals/function.rs +++ b/lib/api/src/sys/externals/function.rs @@ -424,7 +424,7 @@ impl Function { } if !arg.is_from_store(store) { return Err(RuntimeError::new( - "cross-`Context` values are not supported", + "cross-`Store` values are not supported", )); } *slot = arg.as_raw(store); diff --git a/lib/api/src/sys/externals/global.rs b/lib/api/src/sys/externals/global.rs index 27e3d3e3d..511c0bb3f 100644 --- a/lib/api/src/sys/externals/global.rs +++ b/lib/api/src/sys/externals/global.rs @@ -61,7 +61,7 @@ impl Global { ) -> Result { if !val.is_from_store(store) { return Err(RuntimeError::new( - "cross-`Context` values are not supported", + "cross-`Store` values are not supported", )); } let global = VMGlobal::new(GlobalType { @@ -165,7 +165,7 @@ impl Global { pub fn set(&self, store: &mut impl AsStoreMut, val: Value) -> Result<(), RuntimeError> { if !val.is_from_store(store) { return Err(RuntimeError::new( - "cross-`Context` values are not supported", + "cross-`Store` values are not supported", )); } if self.ty(store).mutability != Mutability::Var { diff --git a/lib/api/src/sys/externals/table.rs b/lib/api/src/sys/externals/table.rs index ee10af08f..ada06289c 100644 --- a/lib/api/src/sys/externals/table.rs +++ b/lib/api/src/sys/externals/table.rs @@ -156,7 +156,7 @@ impl Table { ) -> Result<(), RuntimeError> { if dst_table.handle.store_id() != src_table.handle.store_id() { return Err(RuntimeError::new( - "cross-`Context` table copies are not supported", + "cross-`Store` table copies are not supported", )); } let store = store; diff --git a/lib/api/src/sys/native.rs b/lib/api/src/sys/native.rs index 9bd514f4c..30746d250 100644 --- a/lib/api/src/sys/native.rs +++ b/lib/api/src/sys/native.rs @@ -78,7 +78,7 @@ macro_rules! impl_native_traits { // Ensure all parameters come from the same context. if $(!FromToNativeWasmType::is_from_store(&$x, store) ||)* false { return Err(RuntimeError::new( - "cross-`Context` values are not supported", + "cross-`Store` values are not supported", )); } // TODO: when `const fn` related features mature more, we can declare a single array