Better folly::dynamic ==> JSValue conversion

Reviewed By: lexs

Differential Revision: D3347854

fbshipit-source-id: 95b81152d1b0d5fe41e01991c44f5d1110be7ddb
This commit is contained in:
Dan Caspi
2016-07-20 04:25:53 -07:00
committed by Facebook Github Bot 0
parent e1b3bbdb04
commit 654e4bed2e
4 changed files with 82 additions and 6 deletions

View File

@@ -284,11 +284,12 @@ public:
std::string toJSONString(unsigned indent = 0) const throw(JSException);
static Value fromJSON(JSContextRef ctx, const String& json) throw(JSException);
static Value fromDynamic(JSContextRef ctx, folly::dynamic value) throw(JSException);
static JSValueRef fromDynamic(JSContextRef ctx, const folly::dynamic& value);
JSContextRef context() const;
protected:
JSContextRef m_context;
JSValueRef m_value;
static JSValueRef fromDynamicInner(JSContextRef ctx, const folly::dynamic& obj);
};
} }