Skip to content

Commit 9be76f6

Browse files
authored
Update Module#ref documentation in README (#95)
1 parent cd4c74c commit 9be76f6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1021,9 +1021,12 @@ Note that these are pseudo instructions enabling Binaryen to reason about multip
10211021

10221022
#### [Reference types operations](https://github.com/WebAssembly/reference-types/blob/master/proposals/reference-types/Overview.md) 🦄
10231023

1024-
* Module#ref.**null**(): `ExpressionRef`
1024+
* Module#ref.**null**(type: `Type`): `ExpressionRef`
10251025
* Module#ref.**is_null**(value: `ExpressionRef`): `ExpressionRef`
1026-
* Module#ref.**func**(name: `string`): `ExpressionRef`
1026+
* Module#ref.**as_non_null**(value: `ExpressionRef`): `ExpressionRef`
1027+
* Module#ref.**func**(name: `string`, type: `Type`): `ExpressionRef`
1028+
* Module#ref.**i31**(value: `ExpressionRef`): `ExpressionRef`
1029+
* Module#ref.**eq**(left: `ExpressionRef`, right: `ExpressionRef`): `ExpressionRef`
10271030

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

index.d.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1742,9 +1742,6 @@ declare module binaryen {
17421742
ref: {
17431743
null(type: Type): ExpressionRef;
17441744
is_null(value: ExpressionRef): ExpressionRef;
1745-
is_func(value: ExpressionRef): ExpressionRef;
1746-
is_data(value: ExpressionRef): ExpressionRef;
1747-
is_i31(value: ExpressionRef): ExpressionRef;
17481745
as_non_null(value: ExpressionRef): ExpressionRef;
17491746
func(name: string, type: Type): ExpressionRef;
17501747
i31(value: ExpressionRef): ExpressionRef;

0 commit comments

Comments
 (0)