diff --git a/ReactCommon/cxxreact/JSCExecutor.cpp b/ReactCommon/cxxreact/JSCExecutor.cpp index f3a557b8b..0c7b08d06 100644 --- a/ReactCommon/cxxreact/JSCExecutor.cpp +++ b/ReactCommon/cxxreact/JSCExecutor.cpp @@ -368,7 +368,7 @@ void JSCExecutor::loadApplicationScript( int fd, std::string sourceURL) { - String jsSourceURL {sourceURL.c_str()}; + String jsSourceURL(m_context, sourceURL.c_str()); auto bcSourceCode = JSCreateCompiledSourceCode(fd, jsSourceURL); if (!bcSourceCode) {