From d22003a0de642b0c62c3d1228dcc12e66159bda8 Mon Sep 17 00:00:00 2001 From: Ben Nham Date: Sat, 13 Aug 2016 03:24:44 -0700 Subject: [PATCH] dynamically load JavaScriptCore with RTLD_LOCAL option Reviewed By: tadeuzagallo Differential Revision: D3703415 fbshipit-source-id: c67865b7fe75c21a3b620dc3a794b5a0005cf71e --- React/Executors/RCTJSCWrapper.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Executors/RCTJSCWrapper.mm b/React/Executors/RCTJSCWrapper.mm index 237eb64e5..53a853fb8 100644 --- a/React/Executors/RCTJSCWrapper.mm +++ b/React/Executors/RCTJSCWrapper.mm @@ -21,7 +21,7 @@ static void *RCTCustomLibraryHandler(void) 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();