Open rom1504 opened 3 years ago
i8 : check whether input is between -128 and 127
Btw, all numeric types (except u64
) already do validate input.
Maybe add PROTODEF_DEBUG
environment variable for interpreter?
Hi, how can I fix this for myself? What should be checked and where?
RangeError [ERR_OUT_OF_RANGE]: Write error for undefined : The value of "value" is out of range. It must be >= -128 and <= 127. Received 129
Can be implemented by having a validate function for each datatype
useful to debug calls to write
should be optional to avoid perf issues
examples: