File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const F32Code = 0x7d;
41
41
const F64Code = 0x7c ;
42
42
const AnyFuncCode = 0x70 ;
43
43
const AnyrefCode = 0x6f ;
44
- const RefCode = 0x6e ;
44
+ const RefCode = 0x6d ;
45
45
const FuncCode = 0x60 ;
46
46
const VoidCode = 0x40 ;
47
47
Original file line number Diff line number Diff line change @@ -62,10 +62,13 @@ enum class TypeCode {
62
62
FuncRef = 0x70 , // SLEB128(-0x10)
63
63
64
64
// A reference to any type.
65
- AnyRef = 0x6f ,
65
+ AnyRef = 0x6f , // SLEB128(-0x11)
66
+
67
+ // A null reference.
68
+ NullRef = 0x6e , // SLEB128(-0x12)
66
69
67
70
// Type constructor for reference types.
68
- Ref = 0x6e ,
71
+ Ref = 0x6d ,
69
72
70
73
// Type constructor for function types
71
74
Func = 0x60 , // SLEB128(-0x20)
@@ -76,9 +79,6 @@ enum class TypeCode {
76
79
// The 'empty' case of blocktype.
77
80
BlockVoid = 0x40 , // SLEB128(-0x40)
78
81
79
- // Type designator for null - unofficial, will not appear in the binary format
80
- NullRef = 0x39 ,
81
-
82
82
Limit = 0x80
83
83
};
84
84
You can’t perform that action at this time.
0 commit comments