@@ -70,8 +70,8 @@ New/extended instructions:
70
70
- ` ref.null : [] -> [nullref] `
71
71
- allowed in constant expressions
72
72
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] `
75
75
76
76
* The new instructions ` table.get ` and ` table.set ` access tables.
77
77
- ` table.get $x : [i32] -> [t] ` iff ` t ` is the element type of table ` $x `
@@ -116,17 +116,17 @@ Motivation:
116
116
117
117
Additions:
118
118
119
- * Add ` eqref ` as the type of comparable references
120
- - ` reftype ::= ... | eqref `
119
+ * Add ` anyeqref ` as the type of comparable references
120
+ - ` reftype ::= ... | anyeqref `
121
121
* It is a subtype of ` anyref `
122
- - ` eqref < anyref`
123
- - ` nullref < eqref `
122
+ - ` anyeqref < anyref`
123
+ - ` nullref < anyeqref `
124
124
* Add ` ref.eq ` instruction.
125
- - ` ref.eq : [eqref eqref ] -> [i32] `
125
+ - ` ref.eq : [anyeqref anyeqref ] -> [i32] `
126
126
127
127
API changes:
128
128
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.
130
130
131
131
132
132
Questions:
@@ -154,7 +154,7 @@ Additions:
154
154
* Subtying between concrete and universal reference types
155
155
- ` ref $t < anyref `
156
156
- ` 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
158
158
159
159
* Typed function references cannot be null!
160
160
0 commit comments