mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 18:44:47 +01:00
Correct the coding of Struct like the spec https://github.com/lars-t-hansen/moz-gc-experiments/blob/master/version2.md
This commit is contained in:
parent
efa65bb377
commit
f466fc5c09
@ -59,6 +59,9 @@ class StructTypeEntry extends TypeEntry {
|
||||
stream.writeVaruint32( this.fields.size() );
|
||||
for( NamedStorageType field : this.fields ) {
|
||||
stream.writeVarint( 1 ); // 0 - immutable; 1 - mutable
|
||||
if( field.type.getCode() > 0 ) {
|
||||
stream.writeVaruint32( 0x6E );
|
||||
}
|
||||
stream.writeValueType( field.type );
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user