Jengamon / ruwren

A Rustified binding for Wren
Other
40 stars 9 forks source link

Remove any .unwrap() and panic!s #3

Open Jengamon opened 4 years ago

Jengamon commented 4 years ago

For example: https://github.com/Jengamon/ruwren/blob/eb68c25c71bc2b86c7b13f0634855ddd329d8805/src/runtime.rs#L97

unwrapping or panicking in runtime.rs is UB as it crosses the C threshold. Remove these and replace with some kind of defaulting.