lib/nydp/builtin/ensuring.rb in nydp-0.1.13.2 vs lib/nydp/builtin/ensuring.rb in nydp-0.1.14

- old
+ new

@@ -19,10 +19,11 @@ def builtin_invoke vm, args fn_ensure = args.car fn_tricky = args.cdr.car protection_instructions = Nydp::Pair.from_list [InvokeProtection.new(fn_ensure), Nydp::PopArg] - vm.push_instructions protection_instructions, vm.peek_context + vm.instructions.push protection_instructions + vm.contexts.push vm.current_context fn_tricky.invoke vm, Nydp.NIL end end