summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-04-04 01:17:02 +0200
committerGitHub <noreply@github.com>2021-04-04 01:17:02 +0200
commit19d0e6b6710a61e6fdcf9f08e6057e49b349fe18 (patch)
tree8f444a1e26de1f483972f489e38d67ffc4775b3b /core/runtime.rs
parent878599ca7c4eb7636b6d025e669b39651f5ba1d0 (diff)
perf(serde_v8): introduce Serializable boxable object (#9983)
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime.rs b/core/runtime.rs
index a64a71449..f358cf05e 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -1419,7 +1419,7 @@ impl JsRuntime {
let (promise_id, resp) = overflown_response;
args.push(v8::Integer::new(scope, promise_id as i32).into());
args.push(match resp {
- OpResponse::Value(value) => serde_v8::to_v8(scope, value).unwrap(),
+ OpResponse::Value(value) => value.to_v8(scope).unwrap(),
OpResponse::Buffer(buf) => {
bindings::boxed_slice_to_uint8array(scope, buf).into()
}