Skip to content

Commit 9b8edac

Browse files
authored
Fix br_on_* function signatures
1 parent 90afbbd commit 9b8edac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,10 +1117,10 @@ declare module binaryen {
11171117
loop(label: string | null, body: ExpressionRef): ExpressionRef;
11181118
br(label: string, condition?: ExpressionRef, value?: ExpressionRef): ExpressionRef;
11191119
br_if(label: string, condition?: ExpressionRef, value?: ExpressionRef): ExpressionRef;
1120-
br_on_null(label: string, value?: ExpressionRef): ExpressionRef;
1121-
br_on_non_null(label: string, value?: ExpressionRef): ExpressionRef;
1122-
br_on_cast(label: string, value?: ExpressionRef, castType?: Type): ExpressionRef;
1123-
br_on_cast_fail(label: string, value?: ExpressionRef, castType?: Type): ExpressionRef;
1120+
br_on_null(label: string, value: ExpressionRef): ExpressionRef;
1121+
br_on_non_null(label: string, value: ExpressionRef): ExpressionRef;
1122+
br_on_cast(label: string, value: ExpressionRef, castType: HeapType): ExpressionRef;
1123+
br_on_cast_fail(label: string, value: ExpressionRef, castType: HeapType): ExpressionRef;
11241124
switch(labels: string[], defaultLabel: string, condition: ExpressionRef, value?: ExpressionRef): ExpressionRef;
11251125
call(name: string, operands: ExpressionRef[], returnType: Type): ExpressionRef;
11261126
return_call(name: string, operands: ExpressionRef[], returnType: Type): ExpressionRef;

0 commit comments

Comments
 (0)