Allow returning errors from Rust to JavaScript
Abort when panic occurs inside JavaScript code