summaryrefslogtreecommitdiff
path: root/ext/ffi/dlfcn.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-03-22 19:05:06 +0000
committerGitHub <noreply@github.com>2024-03-22 19:05:06 +0000
commit85236576b235c394289d007020434ee18770f899 (patch)
treeb843126175152156756dfb20e80ee60c6b1288c5 /ext/ffi/dlfcn.rs
parentb688b61036177bded61726627e66c2c4707a2a8f (diff)
refactor(ext/ffi): don't go through serde_v8::Value (#23034)
Removes unnecessary indirection - after creating `serde_v8::Value` it was immediately unwrapped to `v8::Value` by the caller.
Diffstat (limited to 'ext/ffi/dlfcn.rs')
-rw-r--r--ext/ffi/dlfcn.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi/dlfcn.rs b/ext/ffi/dlfcn.rs
index e8dd1c36f..f1c47b1d3 100644
--- a/ext/ffi/dlfcn.rs
+++ b/ext/ffi/dlfcn.rs
@@ -291,7 +291,7 @@ fn make_sync_fn<'s>(
let result =
// SAFETY: Same return type declared to libffi; trust user to have it right beyond that.
unsafe { result.to_v8(scope, symbol.result_type.clone()) };
- rv.set(result.v8_value);
+ rv.set(result);
}
}
}