Add note why value stack is always empty after execution

This commit is contained in:
Wei Tang 2018-07-09 23:13:14 +08:00
parent 445d0cd3c6
commit ee7faafa70
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ impl Interpreter {
self.value_stack.pop()
});
// Ensure that stack is empty after the execution.
// Ensure that stack is empty after the execution. This is guaranteed by the validation properties.
assert!(self.value_stack.len() == 0);
Ok(opt_return_value)
@ -150,7 +150,7 @@ impl Interpreter {
self.value_stack.pop()
});
// Ensure that stack is empty after the execution.
// Ensure that stack is empty after the execution. This is guaranteed by the validation properties.
assert!(self.value_stack.len() == 0);
Ok(opt_return_value)