Skip to content

Commit 2a04569

Browse files
javacheFacebook Github Bot
authored andcommitted
Fix usage of old String constructor
Reviewed By: amnn Differential Revision: D4204575 fbshipit-source-id: ea0309ec9bf2c8a4c480188efb00408fcc399e2e
1 parent 20514e3 commit 2a04569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactCommon/cxxreact/JSCExecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ void JSCExecutor::loadApplicationScript(
368368
int fd,
369369
std::string sourceURL)
370370
{
371-
String jsSourceURL {sourceURL.c_str()};
371+
String jsSourceURL(m_context, sourceURL.c_str());
372372

373373
auto bcSourceCode = JSCreateCompiledSourceCode(fd, jsSourceURL);
374374
if (!bcSourceCode) {

0 commit comments

Comments
 (0)