bytecodealliance / lucet

Lucet, the Sandboxing WebAssembly Compiler.
Apache License 2.0
4.06k stars 164 forks source link

just pass the underlying wiggle::Trap to lucet_hostcall_terminate #632

Closed iximeow closed 3 years ago

iximeow commented 3 years ago

another small one for the day: by passing wiggle::Trap we can ~force~ encourage users of lucet to handle the types that can arrive from a TerminationDetails::Provided by passing wiggle::Trap directly. then, users can be certain that the only types that can show up are their own provided types from lucet_hostcall_terminate, or wiggle::Trap via the wiggle bindings.

iximeow commented 3 years ago

great catch, updated there too.

iximeow commented 3 years ago

forgot to push the rustfmt commit..