Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit fec2142

Browse files
committed
Update overview
1 parent c985a1b commit fec2142

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

proposals/reference-types/Overview.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ New/extended instructions:
7070
- `ref.null : [] -> [nullref]`
7171
- allowed in constant expressions
7272

73-
* The new instruction `ref.is_null` checks for null.
74-
- `ref.is_null : [anyref] -> [i32]`
73+
* The new instruction `ref.isnull` checks for null.
74+
- `ref.isnull : [anyref] -> [i32]`
7575

7676
* The new instructions `table.get` and `table.set` access tables.
7777
- `table.get $x : [i32] -> [t]` iff `t` is the element type of table `$x`
@@ -116,17 +116,17 @@ Motivation:
116116

117117
Additions:
118118

119-
* Add `eqref` as the type of comparable references
120-
- `reftype ::= ... | eqref`
119+
* Add `anyeqref` as the type of comparable references
120+
- `reftype ::= ... | anyeqref`
121121
* It is a subtype of `anyref`
122-
- `eqref < anyref`
123-
- `nullref < eqref`
122+
- `anyeqref < anyref`
123+
- `nullref < anyeqref`
124124
* Add `ref.eq` instruction.
125-
- `ref.eq : [eqref eqref] -> [i32]`
125+
- `ref.eq : [anyeqref anyeqref] -> [i32]`
126126

127127
API changes:
128128

129-
* Any JS object (non-primitive value) or `null` can be passed as `eqref` to a Wasm function, stored in a global, or in a table.
129+
* Any JS object (non-primitive value) or `null` can be passed as `anyeqref` to a Wasm function, stored in a global, or in a table.
130130

131131

132132
Questions:
@@ -154,7 +154,7 @@ Additions:
154154
* Subtying between concrete and universal reference types
155155
- `ref $t < anyref`
156156
- `ref <functype> < anyfunc`
157-
- Note: reference types are not necessarily subtypes of `eqref`, including functions
157+
- Note: reference types are not necessarily subtypes of `anyeqref`, including functions
158158

159159
* Typed function references cannot be null!
160160

0 commit comments

Comments
 (0)