mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Better folly::dynamic ==> JSValue conversion
Reviewed By: lexs Differential Revision: D3347854 fbshipit-source-id: 95b81152d1b0d5fe41e01991c44f5d1110be7ddb
This commit is contained in:
committed by
Facebook Github Bot 0
parent
e1b3bbdb04
commit
654e4bed2e
@@ -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);
|
||||
};
|
||||
|
||||
} }
|
||||
|
||||
Reference in New Issue
Block a user