mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
Red box c++ exceptions thrown while executing sync hooks
Summary: Also adds support for creating JS Error objects. When we clean up the way global functions are installed on JSC, we'll be able to use this pattern to auto-catch all c++ exceptions at this level. Reviewed By: lexs Differential Revision: D3276663 fbshipit-source-id: bf3561690013019a25e2be5a4d1b69ba9e002c72
This commit is contained in:
committed by
Facebook Github Bot 3
parent
ca1caf2713
commit
6ec5b953cb
@@ -13,6 +13,12 @@ Value::Value(JSContextRef context, JSValueRef value) :
|
||||
{
|
||||
}
|
||||
|
||||
Value::Value(JSContextRef context, JSStringRef str) :
|
||||
m_context(context),
|
||||
m_value(JSValueMakeString(context, str))
|
||||
{
|
||||
}
|
||||
|
||||
Value::Value(Value&& other) :
|
||||
m_context(other.m_context),
|
||||
m_value(other.m_value)
|
||||
|
||||
Reference in New Issue
Block a user