mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 07:35:25 +00:00
Fix usage of old String constructor
Reviewed By: amnn Differential Revision: D4204575 fbshipit-source-id: ea0309ec9bf2c8a4c480188efb00408fcc399e2e
This commit is contained in:
parent
20514e3482
commit
2a04569926
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user