Fix crash in RCTJSStackFrame
Reviewed By: mmmulani Differential Revision: D3776330 fbshipit-source-id: 0e9126825e86dd7c124bc22341ab3b39b1bd3e0b
This commit is contained in:
parent
63931b1a68
commit
ea3bb35db0
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#import "RCTJSStackFrame.h"
|
#import "RCTJSStackFrame.h"
|
||||||
#import "RCTLog.h"
|
#import "RCTLog.h"
|
||||||
|
#import "RCTUtils.h"
|
||||||
|
|
||||||
static NSRegularExpression *RCTJSStackFrameRegex()
|
static NSRegularExpression *RCTJSStackFrameRegex()
|
||||||
{
|
{
|
||||||
|
@ -41,8 +41,8 @@ static NSRegularExpression *RCTJSStackFrameRegex()
|
||||||
- (NSDictionary *)toDictionary
|
- (NSDictionary *)toDictionary
|
||||||
{
|
{
|
||||||
return @{
|
return @{
|
||||||
@"methodName": self.methodName,
|
@"methodName": RCTNullIfNil(self.methodName),
|
||||||
@"file": self.file,
|
@"file": RCTNullIfNil(self.file),
|
||||||
@"lineNumber": @(self.lineNumber),
|
@"lineNumber": @(self.lineNumber),
|
||||||
@"column": @(self.column)
|
@"column": @(self.column)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue