Skip to content

Commit e065630

Browse files
committed
Update try signature
1 parent fb2456e commit e065630

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ Note that these are pseudo instructions enabling Binaryen to reason about multip
10491049

10501050
#### [Exception handling operations](https://github.com/WebAssembly/exception-handling/blob/master/proposals/Exceptions.md) 🦄
10511051

1052-
* Module#**try**(name: `string`, body: `ExpressionRef`, catchTags: `string[]`, catchBodies: `ExpressionRef[]`, delegateTarget?: `string`): `ExpressionRef`
1052+
* Module#**try**(name: `string | null`, body: `ExpressionRef`, catchTags: `string[]`, catchBodies: `ExpressionRef[]`, delegateTarget?: `string`): `ExpressionRef`
10531053
* Module#**throw**(tag: `string`, operands: `ExpressionRef[]`): `ExpressionRef`
10541054
* Module#**rethrow**(target: `string`): `ExpressionRef`
10551055
>

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ declare module binaryen {
17111711
getBody(func: FunctionRef): ExpressionRef;
17121712
setBody(func: FunctionRef, bodyExpr: ExpressionRef): void;
17131713
};
1714-
try(name: string, body: ExpressionRef, catchTags: string[], catchBodies: ExpressionRef[], delegateTarget?: string): ExpressionRef;
1714+
try(name: string | null, body: ExpressionRef, catchTags: string[], catchBodies: ExpressionRef[], delegateTarget?: string): ExpressionRef;
17151715
throw(tag: string, operands: ExpressionRef[]): ExpressionRef;
17161716
rethrow(target: string): ExpressionRef;
17171717
select(condition: ExpressionRef, ifTrue: ExpressionRef, ifFalse: ExpressionRef): ExpressionRef;

0 commit comments

Comments
 (0)