From 85919dc66f67ea69a86fe0f37b6f539692463267 Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Thu, 28 Apr 2016 16:22:16 -0700 Subject: [PATCH] Fix realm.schema property in Chrome debug mode --- lib/browser/rpc.js | 2 +- src/rpc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/browser/rpc.js b/lib/browser/rpc.js index 8d8e0ca5..8e729076 100644 --- a/lib/browser/rpc.js +++ b/lib/browser/rpc.js @@ -152,7 +152,7 @@ function deserializeDict(realmId, info) { let object = {}; for (let i = 0, len = keys.length; i < len; i++) { - object[keys[i]] = values[i]; + object[keys[i]] = deserialize(realmId, values[i]); } return object; diff --git a/src/rpc.cpp b/src/rpc.cpp index e30a8efd..2599df1d 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -275,7 +275,7 @@ json RPCServer::serialize_json_value(JSValueRef js_value) { JSValueRef js_value = jsc::Object::get_property(m_context, js_object, js_key); keys.push_back(js_key); - values.push_back(js_value); + values.push_back(serialize_json_value(js_value)); } return {