mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Update metering data on return
This commit is contained in:
parent
14fcd78b30
commit
b830f10fa0
@ -43,7 +43,8 @@ impl FunctionMiddleware for Metering {
|
||||
| Operator::BrTable { .. }
|
||||
| Operator::BrIf { .. }
|
||||
| Operator::Call { .. }
|
||||
| Operator::CallIndirect { .. } => {
|
||||
| Operator::CallIndirect { .. }
|
||||
| Operator::Return => {
|
||||
sink.push(Event::Internal(InternalEvent::GetInternal(0)));
|
||||
sink.push(Event::WasmOwned(Operator::I64Const {
|
||||
value: self.current_block as i64,
|
||||
|
Loading…
Reference in New Issue
Block a user