diff --git a/lib/runtime-core/src/vm.rs b/lib/runtime-core/src/vm.rs index 7dfb7de2ba2..94d89df2e92 100644 --- a/lib/runtime-core/src/vm.rs +++ b/lib/runtime-core/src/vm.rs @@ -838,15 +838,9 @@ mod vm_offset_tests { #[test] fn imported_func() { - assert_eq!( - ImportedFunc::offset_func() as usize, - offset_of!(ImportedFunc => func).get_byte_offset(), - ); + assert_eq!(ImportedFunc::offset_func() as usize, 0); - assert_eq!( - ImportedFunc::offset_func_ctx() as usize, - offset_of!(ImportedFunc => func_ctx).get_byte_offset(), - ); + assert_eq!(ImportedFunc::offset_func_ctx() as usize, 8); } #[test]