mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
toString() for debugging
This commit is contained in:
parent
56f46fcbe6
commit
3d5543fa38
@ -321,4 +321,18 @@ class WasmStructInstruction extends WasmInstruction {
|
||||
throw new WasmException( "Unknown array operation: " + op, -1 );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Only used for debugging
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
switch( op ) {
|
||||
case GET:
|
||||
return "struct.get " + fieldName.getName();
|
||||
case SET:
|
||||
return "struct.set " + fieldName.getName();
|
||||
}
|
||||
return super.toString();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user