Permalink
Browse files

Meyers singleton jsc error extractor

Reviewed By: mhorowitz

Differential Revision: D6554142

fbshipit-source-id: f586cd7030130e4ccb069f9aed8fb1364c527e54
  • Loading branch information...
johnislarry authored and facebook-github-bot committed Dec 13, 2017
1 parent 2d4bedb commit 434f432d5d5ea2756c1adac8b1c36e82e60a2b13
Showing with 1 addition and 10 deletions.
  1. +0 −9 ReactCommon/jschelpers/JSCHelpers.cpp
  2. +1 −1 ReactCommon/jschelpers/JSCHelpers.h
@@ -147,17 +147,8 @@ void JSException::buildMessage(JSContextRef ctx, JSValueRef exn, JSStringRef sou
namespace ExceptionHandling {
#if __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wglobal-constructors"
#endif
PlatformErrorExtractor platformErrorExtractor;
#if __clang__
#pragma clang diagnostic pop
#endif
}
JSObjectRef makeFunction(
@@ -51,7 +51,7 @@ namespace ExceptionHandling {
// method@filename[:line[:column]]
std::string stack;
};
using PlatformErrorExtractor = std::function<ExtractedEror(const std::exception &ex, const char *context)>;
typedef ExtractedEror(*PlatformErrorExtractor)(const std::exception &ex, const char *context);
extern PlatformErrorExtractor platformErrorExtractor;
}

0 comments on commit 434f432

Please sign in to comment.