summaryrefslogtreecommitdiff
path: root/ops/fast_call.rs
diff options
context:
space:
mode:
authorAapo Alasuutari <aapo.alasuutari@gmail.com>2023-02-28 08:26:48 +0200
committerGitHub <noreply@github.com>2023-02-28 08:26:48 +0200
commit4835098cf7ad2dd0641c14a2adf44ce233ba286c (patch)
treed84626d2e7e95c8276d289422ef6f18bc49b910e /ops/fast_call.rs
parent7c090b1b14e6b5000dbbed434525387c414ca62c (diff)
fix(ext/ffi): Remove deno_core::OpState qualifiers, fix ops returning pointer defaults (#17959)
Diffstat (limited to 'ops/fast_call.rs')
-rw-r--r--ops/fast_call.rs5
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
}
}
});