Fix usage of old String constructor

Reviewed By: amnn

Differential Revision: D4204575

fbshipit-source-id: ea0309ec9bf2c8a4c480188efb00408fcc399e2e
This commit is contained in:
Pieter De Baets 2016-11-18 07:14:20 -08:00 committed by Facebook Github Bot
parent 20514e3482
commit 2a04569926

View File

@ -368,7 +368,7 @@ void JSCExecutor::loadApplicationScript(
int fd, int fd,
std::string sourceURL) std::string sourceURL)
{ {
String jsSourceURL {sourceURL.c_str()}; String jsSourceURL(m_context, sourceURL.c_str());
auto bcSourceCode = JSCreateCompiledSourceCode(fd, jsSourceURL); auto bcSourceCode = JSCreateCompiledSourceCode(fd, jsSourceURL);
if (!bcSourceCode) { if (!bcSourceCode) {