Skip to content

Commit 158b6b6

Browse files
authored
Add remaining heap type APIs (#2556)
1 parent a565d73 commit 158b6b6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Diff for: src/glue/binaryen.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ export declare function _BinaryenHeapTypeNone(): HeapTypeRef;
8080
export declare function _BinaryenHeapTypeNoext(): HeapTypeRef;
8181
export declare function _BinaryenHeapTypeNofunc(): HeapTypeRef;
8282

83+
export declare function _BinaryenHeapTypeIsBasic(heapType: HeapTypeRef): bool;
84+
export declare function _BinaryenHeapTypeIsSignature(heapType: HeapTypeRef): bool;
85+
export declare function _BinaryenHeapTypeIsStruct(heapType: HeapTypeRef): bool;
86+
export declare function _BinaryenHeapTypeIsArray(heapType: HeapTypeRef): bool;
8387
export declare function _BinaryenHeapTypeIsBottom(heapType: HeapTypeRef): bool;
8488
export declare function _BinaryenHeapTypeGetBottom(heapType: HeapTypeRef): HeapTypeRef;
8589
export declare function _BinaryenHeapTypeIsSubType(left: HeapTypeRef, right: HeapTypeRef): bool;

Diff for: src/glue/binaryen.js

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ export const {
4343
_BinaryenHeapTypeNoext,
4444
_BinaryenHeapTypeNofunc,
4545

46+
_BinaryenHeapTypeIsBasic,
47+
_BinaryenHeapTypeIsSignature,
48+
_BinaryenHeapTypeIsStruct,
49+
_BinaryenHeapTypeIsArray,
4650
_BinaryenHeapTypeIsBottom,
4751
_BinaryenHeapTypeGetBottom,
4852
_BinaryenHeapTypeIsSubType,

0 commit comments

Comments
 (0)