Skip to content

Commit

Permalink
Meyers singleton jsc error extractor
Browse files Browse the repository at this point in the history
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 434f432
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions ReactCommon/jschelpers/JSCHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion ReactCommon/jschelpers/JSCHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 434f432

Please sign in to comment.