File tree 2 files changed +2
-2
lines changed
wasm-encoder/src/component
wasmparser/src/readers/component
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ impl CanonicalFunctionSection {
170
170
/// Defines a function which will spawn a new thread by invoking a shared
171
171
/// function indirectly through a `funcref` table.
172
172
pub fn thread_spawn_indirect ( & mut self , table_index : u32 ) -> & mut Self {
173
- self . bytes . push ( 0x07 ) ;
173
+ self . bytes . push ( 0x24 ) ;
174
174
table_index. encode ( & mut self . bytes ) ;
175
175
self . num_added += 1 ;
176
176
self
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ impl<'a> FromReader<'a> for CanonicalFunction {
285
285
0x05 => CanonicalFunction :: ThreadSpawn {
286
286
func_ty_index : reader. read ( ) ?,
287
287
} ,
288
- 0x07 => CanonicalFunction :: ThreadSpawnIndirect {
288
+ 0x24 => CanonicalFunction :: ThreadSpawnIndirect {
289
289
table_index : reader. read ( ) ?,
290
290
} ,
291
291
0x06 => CanonicalFunction :: ThreadHwConcurrency ,
You can’t perform that action at this time.
0 commit comments