From 6fa864b9fc26a11fe1bddc2e06ff76e4b8d453d9 Mon Sep 17 00:00:00 2001 From: Volker Berlin <volker.berlin@googlemail.com> Date: Sun, 5 Jan 2020 21:38:52 +0100 Subject: [PATCH] throw consume also a value from the stack --- .../jwebassembly/module/WasmBlockInstruction.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/inetsoftware/jwebassembly/module/WasmBlockInstruction.java b/src/de/inetsoftware/jwebassembly/module/WasmBlockInstruction.java index 46d6689..53b6519 100644 --- a/src/de/inetsoftware/jwebassembly/module/WasmBlockInstruction.java +++ b/src/de/inetsoftware/jwebassembly/module/WasmBlockInstruction.java @@ -1,5 +1,5 @@ /* - Copyright 2018 - 2019 Volker Berlin (i-net software) + Copyright 2018 - 2020 Volker Berlin (i-net software) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -111,6 +111,8 @@ class WasmBlockInstruction extends WasmInstruction { case IF: case BR_IF: case DROP: + case THROW: + case RETHROW: return 1; default: return 0;