diff options
Diffstat (limited to 'ops/fast_call.rs')
-rw-r--r-- | ops/fast_call.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ops/fast_call.rs b/ops/fast_call.rs index a7ca51d4f..12ff9e446 100644 --- a/ops/fast_call.rs +++ b/ops/fast_call.rs @@ -250,13 +250,14 @@ pub(crate) fn generate( // // V8 calls the slow path so we can take the slot // value and throw. - let result_wrap = q!(Vars { op_state }, { + let default = optimizer.fast_result.as_ref().unwrap().default_value(); + let result_wrap = q!(Vars { op_state, default }, { match result { Ok(result) => result, Err(err) => { op_state.last_fast_op_error.replace(err); __opts.fallback = true; - Default::default() + default } } }); |