mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
handling of Boolean return values
This commit is contained in:
parent
9958a2bed9
commit
30aa01c824
@ -229,6 +229,9 @@ public class WasmRule extends TemporaryFolder {
|
||||
if( expected instanceof Character ) { // WASM does not support char that it is number
|
||||
expected = new Integer( ((Character)expected).charValue() );
|
||||
}
|
||||
if( expected instanceof Boolean ) { // WASM does not support boolean that it is number
|
||||
expected = new Integer( ((Boolean)expected) ? 1 : 0 );
|
||||
}
|
||||
|
||||
for( int i = 0; i < params.length; i++ ) {
|
||||
if( params[i] instanceof Character ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user