@@ -26,7 +26,7 @@ export type FunctionRef = Ref;
2626export type ImportRef = Ref ;
2727export type ExportRef = Ref ;
2828export type GlobalRef = Ref ;
29- export type EventRef = Ref ;
29+ export type TagRef = Ref ;
3030export type TableRef = Ref ;
3131export type ElementSegmentRef = Ref ;
3232export type RelooperRef = Ref ;
@@ -410,18 +410,18 @@ export declare function _BinaryenRefEqSetLeft(expr: ExpressionRef, leftExpr: Exp
410410export declare function _BinaryenRefEqGetRight ( expr : ExpressionRef ) : ExpressionRef ;
411411export declare function _BinaryenRefEqSetRight ( expr : ExpressionRef , rightExpr : ExpressionRef ) : void ;
412412
413- export declare function _BinaryenTry ( module : ModuleRef , name : StringRef , bodyExpr : ExpressionRef , catchEvents : ArrayRef < StringRef > , numCatchEvents : Index , catchBodies : ArrayRef < ExpressionRef > , numCatchBodies : Index , delegateTarget : StringRef ) : ExpressionRef ;
413+ export declare function _BinaryenTry ( module : ModuleRef , name : StringRef , bodyExpr : ExpressionRef , catchTags : ArrayRef < StringRef > , numCatchTags : Index , catchBodies : ArrayRef < ExpressionRef > , numCatchBodies : Index , delegateTarget : StringRef ) : ExpressionRef ;
414414export declare function _BinaryenTryGetName ( expr : ExpressionRef ) : StringRef ;
415415export declare function _BinaryenTrySetName ( expr : ExpressionRef , name : StringRef ) : void ;
416416export declare function _BinaryenTryGetBody ( expr : ExpressionRef ) : ExpressionRef ;
417417export declare function _BinaryenTrySetBody ( expr : ExpressionRef , bodyExpr : ExpressionRef ) : void ;
418- export declare function _BinaryenTryGetNumCatchEvents ( expr : ExpressionRef ) : Index ;
418+ export declare function _BinaryenTryGetNumCatchTags ( expr : ExpressionRef ) : Index ;
419419export declare function _BinaryenTryGetNumCatchBodies ( expr : ExpressionRef ) : Index ;
420- export declare function _BinaryenTryGetCatchEventAt ( expr : ExpressionRef , index : Index ) : StringRef ;
421- export declare function _BinaryenTrySetCatchEventAt ( expr : ExpressionRef , index : Index , catchEvent : StringRef ) : void ;
422- export declare function _BinaryenTryAppendCatchEvent ( expr : ExpressionRef , catchEvent : StringRef ) : Index ;
423- export declare function _BinaryenTryInsertCatchEventAt ( expr : ExpressionRef , index : Index , catchEvent : StringRef ) : void ;
424- export declare function _BinaryenTryRemoveCatchEventAt ( expr : ExpressionRef , index : Index ) : StringRef ;
420+ export declare function _BinaryenTryGetCatchTagAt ( expr : ExpressionRef , index : Index ) : StringRef ;
421+ export declare function _BinaryenTrySetCatchTagAt ( expr : ExpressionRef , index : Index , catchTag : StringRef ) : void ;
422+ export declare function _BinaryenTryAppendCatchTag ( expr : ExpressionRef , catchTag : StringRef ) : Index ;
423+ export declare function _BinaryenTryInsertCatchTagAt ( expr : ExpressionRef , index : Index , catchTag : StringRef ) : void ;
424+ export declare function _BinaryenTryRemoveCatchTagAt ( expr : ExpressionRef , index : Index ) : StringRef ;
425425export declare function _BinaryenTryGetCatchBodyAt ( expr : ExpressionRef , index : Index ) : ExpressionRef ;
426426export declare function _BinaryenTrySetCatchBodyAt ( expr : ExpressionRef , index : Index , catchExpr : ExpressionRef ) : void ;
427427export declare function _BinaryenTryAppendCatchBody ( expr : ExpressionRef , catchExpr : ExpressionRef ) : Index ;
@@ -432,9 +432,9 @@ export declare function _BinaryenTryGetDelegateTarget(expr: ExpressionRef): Stri
432432export declare function _BinaryenTrySetDelegateTarget ( expr : ExpressionRef , delegateTarget : StringRef ) : void ;
433433export declare function _BinaryenTryIsDelegate ( expr : ExpressionRef ) : bool ;
434434
435- export declare function _BinaryenThrow ( module : ModuleRef , eventName : StringRef , operands : ArrayRef < ExpressionRef > , numOperands : Index ) : ExpressionRef ;
436- export declare function _BinaryenThrowGetEvent ( expr : ExpressionRef ) : StringRef ;
437- export declare function _BinaryenThrowSetEvent ( expr : ExpressionRef , eventName : StringRef ) : void ;
435+ export declare function _BinaryenThrow ( module : ModuleRef , tagName : StringRef , operands : ArrayRef < ExpressionRef > , numOperands : Index ) : ExpressionRef ;
436+ export declare function _BinaryenThrowGetTag ( expr : ExpressionRef ) : StringRef ;
437+ export declare function _BinaryenThrowSetTag ( expr : ExpressionRef , tagName : StringRef ) : void ;
438438export declare function _BinaryenThrowGetNumOperands ( expr : ExpressionRef ) : Index ;
439439export declare function _BinaryenThrowGetOperandAt ( expr : ExpressionRef , index : Index ) : ExpressionRef ;
440440export declare function _BinaryenThrowSetOperandAt ( expr : ExpressionRef , index : Index , operandExpr : ExpressionRef ) : void ;
@@ -497,13 +497,13 @@ export declare function _BinaryenAddFunctionImport(module: ModuleRef, internalNa
497497export declare function _BinaryenAddTableImport ( module : ModuleRef , internalName : StringRef , externalModuleName : StringRef , externalBaseName : StringRef ) : void ;
498498export declare function _BinaryenAddMemoryImport ( module : ModuleRef , internalName : StringRef , externalModuleName : StringRef , externalBaseName : StringRef , shared :bool ) : void ;
499499export declare function _BinaryenAddGlobalImport ( module : ModuleRef , internalName : StringRef , externalModuleName : StringRef , externalBaseName : StringRef , globalType : TypeRef , mutable : bool ) : void ;
500- export declare function _BinaryenAddEventImport ( module : ModuleRef , internalName : StringRef , externalModuleName : StringRef , externalBaseName : StringRef , attribute : u32 , params : TypeRef , results : TypeRef ) : void ;
500+ export declare function _BinaryenAddTagImport ( module : ModuleRef , internalName : StringRef , externalModuleName : StringRef , externalBaseName : StringRef , params : TypeRef , results : TypeRef ) : void ;
501501
502502export declare function _BinaryenAddFunctionExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
503503export declare function _BinaryenAddTableExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
504504export declare function _BinaryenAddMemoryExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
505505export declare function _BinaryenAddGlobalExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
506- export declare function _BinaryenAddEventExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
506+ export declare function _BinaryenAddTagExport ( module : ModuleRef , internalName : StringRef , externalName : StringRef ) : ExportRef ;
507507export declare function _BinaryenGetExport ( module : ModuleRef , externalName : StringRef ) : ExportRef ;
508508export declare function _BinaryenRemoveExport ( module : ModuleRef , externalName : StringRef ) : void ;
509509export declare function _BinaryenGetNumExports ( module : ModuleRef ) : Index ;
@@ -523,14 +523,13 @@ export declare function _BinaryenGlobalGetType(global: GlobalRef): TypeRef;
523523export declare function _BinaryenGlobalIsMutable ( global : GlobalRef ) : bool ;
524524export declare function _BinaryenGlobalGetInitExpr ( global : GlobalRef ) : ExpressionRef ;
525525
526- export declare function _BinaryenAddEvent ( module : ModuleRef , name : StringRef , attribute : u32 , params : TypeRef , results : TypeRef ) : EventRef ;
527- export declare function _BinaryenGetEvent ( module : ModuleRef , name : StringRef ) : EventRef ;
528- export declare function _BinaryenRemoveEvent ( module : ModuleRef , name : StringRef ) : void ;
526+ export declare function _BinaryenAddTag ( module : ModuleRef , name : StringRef , params : TypeRef , results : TypeRef ) : TagRef ;
527+ export declare function _BinaryenGetTag ( module : ModuleRef , name : StringRef ) : TagRef ;
528+ export declare function _BinaryenRemoveTag ( module : ModuleRef , name : StringRef ) : void ;
529529
530- export declare function _BinaryenEventGetName ( event : EventRef ) : StringRef ;
531- export declare function _BinaryenEventGetAttribute ( event : EventRef ) : u32 ;
532- export declare function _BinaryenEventGetParams ( event : EventRef ) : TypeRef ;
533- export declare function _BinaryenEventGetResults ( event : EventRef ) : TypeRef ;
530+ export declare function _BinaryenTagGetName ( tag : TagRef ) : StringRef ;
531+ export declare function _BinaryenTagGetParams ( tag : TagRef ) : TypeRef ;
532+ export declare function _BinaryenTagGetResults ( tag : TagRef ) : TypeRef ;
534533
535534export declare function _BinaryenAddTable ( module : ModuleRef , name : StringRef , initial : Index , maximum : Index ) : TableRef ;
536535export declare function _BinaryenRemoveTable ( module : ModuleRef , table : StringRef ) : void ;
0 commit comments