mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
remove not needed parentheses after fix of spidermonkey
This commit is contained in:
parent
f52bca35e4
commit
cd4f1cf307
@ -385,20 +385,20 @@ public class TextModuleWriter extends ModuleWriter {
|
|||||||
case i64:
|
case i64:
|
||||||
case f32:
|
case f32:
|
||||||
case f64:
|
case f64:
|
||||||
output.append( " (" ).append( type.toString() ).append( ".const 0)" );
|
output.append( type.toString() ).append( ".const 0" );
|
||||||
break;
|
break;
|
||||||
case i8:
|
case i8:
|
||||||
case i16:
|
case i16:
|
||||||
writeDefaultValue( output, ValueType.i32 );
|
writeDefaultValue( output, ValueType.i32 );
|
||||||
break;
|
break;
|
||||||
case anyref:
|
case anyref:
|
||||||
output.append( "(ref.null)" );
|
output.append( "ref.null" );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new WasmException( "Not supported storage type: " + type, -1 );
|
throw new WasmException( "Not supported storage type: " + type, -1 );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
output.append( "(ref.null)" );
|
output.append( "ref.null" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user