Report JS errors in debug console
Reviewed By: javache Differential Revision: D4835405 fbshipit-source-id: d10658d1b885048ea3495388450208bb0e29ee5b
This commit is contained in:
parent
85d5a0e5be
commit
37c1678421
|
@ -8,6 +8,7 @@
|
|||
*/
|
||||
|
||||
#import "RCTJSStackFrame.h"
|
||||
|
||||
#import "RCTLog.h"
|
||||
#import "RCTUtils.h"
|
||||
|
||||
|
@ -98,4 +99,14 @@ static NSRegularExpression *RCTJSStackFrameRegex()
|
|||
return stack;
|
||||
}
|
||||
|
||||
- (NSString *)description {
|
||||
return [NSString stringWithFormat:@"<%@: %p method name: %@; file name: %@; line: %ld; column: %ld>",
|
||||
self.class,
|
||||
self,
|
||||
self.methodName,
|
||||
self.file,
|
||||
(long)self.lineNumber,
|
||||
(long)self.column];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue