mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
use invalid default value to detect missing initializing
This commit is contained in:
parent
fbdd0eb3d0
commit
b90d7e1dea
@ -24,7 +24,7 @@ class Function {
|
||||
|
||||
int id;
|
||||
|
||||
int typeId;
|
||||
int typeId = -1; // -1 not init, use an invalid value to fail hard if it used without init
|
||||
|
||||
final StringBuilder output = new StringBuilder();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user