Permalink
Browse files

Fix usage of old String constructor

Reviewed By: amnn

Differential Revision: D4204575

fbshipit-source-id: ea0309ec9bf2c8a4c480188efb00408fcc399e2e
  • Loading branch information...
1 parent 20514e3 commit 2a0456992690a6cbd2a7457855695d2cc07dd227 @javache javache committed with Facebook Github Bot Nov 18, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 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) {

0 comments on commit 2a04569

Please sign in to comment.