Rename event instruction to tag.
@@ -96,13 +96,12 @@ public class WasmModuleGenerator {
environment = new GenerationEnvironment(library);
builder.appendln(";;; Code generated by J2WASM");
builder.append("(module");
- // Declare an event that will be used for Java exceptions. The event has a single parameter
- // that is the Throwable object being thrown by the throw instruction. The attribute value of 0
- // denotes that the event is an exception.
- // The throw instruction will refer to this event and will expect a single element in the stack
+ // Declare an tag that will be used for Java exceptions. The tag has a single parameter that is
+ // the Throwable object being thrown by the throw instruction.
+ // The throw instruction will refer to this tag and will expect a single element in the stack
// with the type $java.lang.Throwable.
builder.newLine();
- builder.append("(event $exception.event (attr 0) (param (ref null $java.lang.Throwable)))");
+ builder.append("(tag $exception.event (param (ref null $java.lang.Throwable)))");
emitRttHierarchy(library);
emitGlobals(library);
emitDynamicDispatchMethodTypes(library);
