diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-04-04 01:17:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 01:17:02 +0200 |
commit | 19d0e6b6710a61e6fdcf9f08e6057e49b349fe18 (patch) | |
tree | 8f444a1e26de1f483972f489e38d67ffc4775b3b /core/runtime.rs | |
parent | 878599ca7c4eb7636b6d025e669b39651f5ba1d0 (diff) |
perf(serde_v8): introduce Serializable boxable object (#9983)
Diffstat (limited to 'core/runtime.rs')
-rw-r--r-- | core/runtime.rs | 2 |
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() } |