Fix RCTNativeTraceEndSection calls
Summary: public For "some" reason, exception is never `NULL`, it's `null` (the JavaScript value), so the calls will never finish. Reviewed By: javache Differential Revision: D2625896 fb-gh-sync-id: fc8176a6ac485bfecc9903db05bf69b39ac2d9b4
This commit is contained in:
Родитель
de586bfa18
Коммит
16d9f045d1
|
@ -202,9 +202,7 @@ static JSValueRef RCTNativeTraceEndSection(JSContextRef context, __unused JSObje
|
||||||
{
|
{
|
||||||
if (argumentCount > 0) {
|
if (argumentCount > 0) {
|
||||||
double tag = JSValueToNumber(context, arguments[0], exception);
|
double tag = JSValueToNumber(context, arguments[0], exception);
|
||||||
if (exception == NULL) {
|
RCTProfileEndEvent((uint64_t)tag, @"console", nil);
|
||||||
RCTProfileEndEvent((uint64_t)tag, @"console", nil);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return JSValueMakeUndefined(context);
|
return JSValueMakeUndefined(context);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче