Skip to content

Commit d22003a

Browse files
bnhamFacebook Github Bot 6
authored andcommitted
dynamically load JavaScriptCore with RTLD_LOCAL option
Reviewed By: tadeuzagallo Differential Revision: D3703415 fbshipit-source-id: c67865b7fe75c21a3b620dc3a794b5a0005cf71e
1 parent de9d22e commit d22003a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

React/Executors/RCTJSCWrapper.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
static dispatch_once_t token;
2222
static void *handler;
2323
dispatch_once(&token, ^{
24-
handler = dlopen("@executable_path/Frameworks/JavaScriptCore.framework/JavaScriptCore", RTLD_LAZY);
24+
handler = dlopen("@executable_path/Frameworks/JavaScriptCore.framework/JavaScriptCore", RTLD_LAZY | RTLD_LOCAL);
2525
if (!handler) {
2626
const char *err = dlerror();
2727

0 commit comments

Comments
 (0)