Throw exception when not enough data in builtin javascript ?
rom1504 opened this issue · 2 comments
rom1504 commented
See https://github.com/hansihe/protodefc/blob/master/backend_resources/javascript/builtins.js#L14 vs https://github.com/ProtoDef-io/node-protodef/blob/master/src/datatypes/numeric.js#L67
This is necessary to implement protocols that don't prefix the length (eg minecraft <=1.7)
Deleted user commented
How is this checked in normal Node?
rom1504 commented
See the second link I posted here for that (or search for that exception in node-protodef repo)