Skip to content

Commit bf5d14f

Browse files
authored
Add reference types expression infos (#32)
1 parent efd97b7 commit bf5d14f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,12 @@ Note that these are pseudo instructions enabling Binaryen to reason about multip
12051205
* TryInfo#**body**: `ExpressionRef`
12061206
* TryInfo#**catchBody**: `ExpressionRef`
12071207
>
1208+
* RefNullInfo
1209+
>
1210+
* RefIsNullInfo#**value**: `ExpressionRef`
1211+
>
1212+
* RefFuncInfo#**func**: `string`
1213+
>
12081214
* ThrowInfo#**event**: `string`
12091215
* ThrowInfo#**operands**: `ExpressionRef[]`
12101216
>

index.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,6 +1648,17 @@ declare module binaryen {
16481648
size: ExpressionRef;
16491649
}
16501650

1651+
interface RefNullInfo extends ExpressionInfo {
1652+
}
1653+
1654+
interface RefIsNullInfo extends ExpressionInfo {
1655+
value: ExpressionRef;
1656+
}
1657+
1658+
interface RefFuncInfo extends ExpressionInfo {
1659+
func: string;
1660+
}
1661+
16511662
interface TryInfo extends ExpressionInfo {
16521663
body: ExpressionRef;
16531664
catchBody: ExpressionRef;

0 commit comments

Comments
 (0)