()
| 72 | #[test] |
| 73 | #[should_panic = "wrong store"] |
| 74 | fn array_new_cross_store_pre() { |
| 75 | let mut store1 = gc_store().unwrap(); |
| 76 | let mut store2 = gc_store().unwrap(); |
| 77 | |
| 78 | let array_ty = ArrayType::new( |
| 79 | store1.engine(), |
| 80 | FieldType::new(Mutability::Var, StorageType::ValType(ValType::ANYREF)), |
| 81 | ); |
| 82 | let pre = ArrayRefPre::new(&mut store2, array_ty); |
| 83 | |
| 84 | ArrayRef::new(&mut store1, &pre, &Val::I32(0), 3).unwrap(); |
| 85 | } |
| 86 | |
| 87 | #[test] |
| 88 | fn array_new_fixed_empty() -> Result<()> { |