function test_func() { rust_func().and_then(function (x) { throw new Error("intentional runtime error"); }); }