File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
wasm-encoder/src/component
wasmparser/src/readers/component Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -675,7 +675,7 @@ impl ComponentDefinedTypeEncoder<'_> {
675
675
676
676
/// Define a `future` type with the specified payload.
677
677
pub fn future ( self , payload : Option < ComponentValType > ) {
678
- self . 0 . push ( 0x67 ) ;
678
+ self . 0 . push ( 0x65 ) ;
679
679
payload. encode ( self . 0 ) ;
680
680
}
681
681
@@ -687,7 +687,7 @@ impl ComponentDefinedTypeEncoder<'_> {
687
687
688
688
/// Define the `error-context` type.
689
689
pub fn error_context ( self ) {
690
- self . 0 . push ( 0x65 ) ;
690
+ self . 0 . push ( 0x64 ) ;
691
691
}
692
692
}
693
693
Original file line number Diff line number Diff line change @@ -550,9 +550,9 @@ impl<'a> ComponentDefinedType<'a> {
550
550
} ,
551
551
0x69 => ComponentDefinedType :: Own ( reader. read ( ) ?) ,
552
552
0x68 => ComponentDefinedType :: Borrow ( reader. read ( ) ?) ,
553
- 0x67 => ComponentDefinedType :: Future ( reader. read ( ) ?) ,
553
+ 0x65 => ComponentDefinedType :: Future ( reader. read ( ) ?) ,
554
554
0x66 => ComponentDefinedType :: Stream ( reader. read ( ) ?) ,
555
- 0x65 => ComponentDefinedType :: ErrorContext ,
555
+ 0x64 => ComponentDefinedType :: ErrorContext ,
556
556
x => return reader. invalid_leading_byte ( x, "component defined type" ) ,
557
557
} )
558
558
}
You can’t perform that action at this time.
0 commit comments