Skip to content

Commit b4b1517

Browse files
Update Module#try (#48)
1 parent 2c9945f commit b4b1517

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ Note that these are pseudo instructions enabling Binaryen to reason about multip
987987

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

990-
* Module#**try**(body: `ExpressionRef`, catchBody: `ExpressionRef`): `ExpressionRef`
990+
* Module#**try**(name: `string`, body: `ExpressionRef`, catchTags: `string[]`, catchBodies: `ExpressionRef[]`, delegateTarget: `string`): `ExpressionRef`
991991
* Module#**throw**(event: `string`, operands: `ExpressionRef[]`): `ExpressionRef`
992992
* Module#**rethrow**(exnref: `ExpressionRef`): `ExpressionRef`
993993
* Module#**br_on_exn**(label: `string`, event: `string`, exnref: `ExpressionRef`): `ExpressionRef`
@@ -1006,7 +1006,7 @@ Note that these are pseudo instructions enabling Binaryen to reason about multip
10061006

10071007
#### [Bulk memory operations](https://github.com/WebAssembly/bulk-memory-operations/blob/master/proposals/bulk-memory-operations/Overview.md) 🦄
10081008

1009-
* Module#memory.**init**(segment: `number`, dest: `ExpressionRef`, offset: `ExpressionRef`, size: `ExpressionRef`): `ExpressionRef`;
1009+
* Module#memory.**init**(segment: `number`, dest: `ExpressionRef`, offset: `ExpressionRef`, size: `ExpressionRef`): `ExpressionRef`
10101010
* Module#memory.**copy**(dest: `ExpressionRef`, source: `ExpressionRef`, size: `ExpressionRef`): `ExpressionRef`
10111011
* Module#memory.**fill**(dest: `ExpressionRef`, value: `ExpressionRef`, size: `ExpressionRef`): `ExpressionRef`
10121012

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ declare module binaryen {
13891389
make(elements: ExportRef[]): ExpressionRef;
13901390
extract(tuple: ExpressionRef, index: number): ExpressionRef;
13911391
};
1392-
try(body: ExpressionRef, catchBody: ExpressionRef): ExpressionRef;
1392+
try(name: string, body: ExpressionRef, catchTags: string[], catchBodies: ExpressionRef[], delegateTarget: string): ExpressionRef;
13931393
throw(event: string, operands: ExpressionRef[]): ExpressionRef;
13941394
rethrow(exnref: ExpressionRef): ExpressionRef;
13951395
br_on_exn(label: string, event: string, exnref: ExpressionRef): ExpressionRef;

0 commit comments

Comments
 (0)