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 "RCTLog.h"
|
||||
|
||||
#import "RCTUtils.h"
|
||||
|
||||
static NSRegularExpression *RCTJSStackFrameRegex()
|
||||
{
|
||||
|
@ -41,11 +41,11 @@ static NSRegularExpression *RCTJSStackFrameRegex()
|
|||
- (NSDictionary *)toDictionary
|
||||
{
|
||||
return @{
|
||||
@"methodName": self.methodName,
|
||||
@"file": self.file,
|
||||
@"lineNumber": @(self.lineNumber),
|
||||
@"column": @(self.column)
|
||||
};
|
||||
@"methodName": RCTNullIfNil(self.methodName),
|
||||
@"file": RCTNullIfNil(self.file),
|
||||
@"lineNumber": @(self.lineNumber),
|
||||
@"column": @(self.column)
|
||||
};
|
||||
}
|
||||
|
||||
+ (instancetype)stackFrameWithLine:(NSString *)line
|
||||
|
|
Loading…
Reference in New Issue