diff --git a/README.md b/README.md index 4c571f27..35854db1 100644 --- a/README.md +++ b/README.md @@ -1049,7 +1049,7 @@ Note that these are pseudo instructions enabling Binaryen to reason about multip #### [Exception handling operations](https://github.com/WebAssembly/exception-handling/blob/master/proposals/Exceptions.md) 🦄 -* Module#**try**(name: `string`, body: `ExpressionRef`, catchTags: `string[]`, catchBodies: `ExpressionRef[]`, delegateTarget?: `string`): `ExpressionRef` +* Module#**try**(name: `string | null`, body: `ExpressionRef`, catchTags: `string[]`, catchBodies: `ExpressionRef[]`, delegateTarget?: `string`): `ExpressionRef` * Module#**throw**(tag: `string`, operands: `ExpressionRef[]`): `ExpressionRef` * Module#**rethrow**(target: `string`): `ExpressionRef` > diff --git a/index.d.ts b/index.d.ts index b2798b12..697a59a1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1711,7 +1711,7 @@ declare module binaryen { getBody(func: FunctionRef): ExpressionRef; setBody(func: FunctionRef, bodyExpr: ExpressionRef): void; }; - try(name: string, body: ExpressionRef, catchTags: string[], catchBodies: ExpressionRef[], delegateTarget?: string): ExpressionRef; + try(name: string | null, body: ExpressionRef, catchTags: string[], catchBodies: ExpressionRef[], delegateTarget?: string): ExpressionRef; throw(tag: string, operands: ExpressionRef[]): ExpressionRef; rethrow(target: string): ExpressionRef; select(condition: ExpressionRef, ifTrue: ExpressionRef, ifFalse: ExpressionRef): ExpressionRef;