From 19d0e6b6710a61e6fdcf9f08e6057e49b349fe18 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Sun, 4 Apr 2021 01:17:02 +0200 Subject: perf(serde_v8): introduce Serializable boxable object (#9983) --- core/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/runtime.rs') 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() } -- cgit v1.2.3