diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2022-10-16 21:52:48 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2022-10-16 21:52:48 -0300 |
commit | 890d10cc4fd131ee27059e3c309ea38679293ab2 (patch) | |
tree | d838c3fe07bc4e4f18273e00f10f7844b358529e /src/pattern.rs | |
parent | e8a11468fefd81c2d9181ca15bceaf71e09a5345 (diff) |
Finish step_in and step_out (VM core)
Diffstat (limited to 'src/pattern.rs')
-rw-r--r-- | src/pattern.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pattern.rs b/src/pattern.rs index 6795481..2f7166a 100644 --- a/src/pattern.rs +++ b/src/pattern.rs @@ -50,9 +50,14 @@ impl<O: Serialize> Pattern<O> { &mut frames, //&mut output, ); - let (pack, obj) = vm::Packer::new(interp, MAX_CALLS).deserialize(der)?; + let (mut packs, obj) = vm::Packer::new( + interp, + MAX_CALLS, + ).deserialize(der)?; // this should always be None debug_assert!(obj.is_none()); + debug_assert!(packs.len() == 1); + let pack = packs.pop().unwrap(); let de = De::deserialize(vm::Unpacker::new(pack, MAX_CALLS)); todo!() } |