Skip to content

Commit

Permalink
dynamically load JavaScriptCore with RTLD_LOCAL option
Browse files Browse the repository at this point in the history
Reviewed By: tadeuzagallo

Differential Revision: D3703415

fbshipit-source-id: c67865b7fe75c21a3b620dc3a794b5a0005cf71e
  • Loading branch information
bnham authored and Facebook Github Bot 6 committed Aug 13, 2016
1 parent de9d22e commit d22003a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Executors/RCTJSCWrapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
static dispatch_once_t token;
static void *handler;
dispatch_once(&token, ^{
handler = dlopen("@executable_path/Frameworks/JavaScriptCore.framework/JavaScriptCore", RTLD_LAZY);
handler = dlopen("@executable_path/Frameworks/JavaScriptCore.framework/JavaScriptCore", RTLD_LAZY | RTLD_LOCAL);
if (!handler) {
const char *err = dlerror();

Expand Down

0 comments on commit d22003a

Please sign in to comment.