Report JS errors in debug console

Reviewed By: javache

Differential Revision: D4835405

fbshipit-source-id: d10658d1b885048ea3495388450208bb0e29ee5b
This commit is contained in:
Alex Dvornikov 2017-04-05 19:44:39 -07:00 committed by Facebook Github Bot
parent 85d5a0e5be
commit 37c1678421
1 changed files with 11 additions and 0 deletions

View File

@ -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