diff --git a/ReactCommon/cxxreact/JSCExecutor.cpp b/ReactCommon/cxxreact/JSCExecutor.cpp index cc49b719a..fd4e79d6b 100644 --- a/ReactCommon/cxxreact/JSCExecutor.cpp +++ b/ReactCommon/cxxreact/JSCExecutor.cpp @@ -373,19 +373,19 @@ void JSCExecutor::loadApplicationScript( { String jsSourceURL(m_context, sourceURL.c_str()); - JSCompiledSourceError jsError; + JSLoadSourceError jsError; auto bcSourceCode = JSCreateCompiledSourceCode(fd, jsSourceURL, &jsError); switch (jsError) { - case JSCompiledSourceErrorOnRead: - case JSCompiledSourceErrorNotCompiled: + case JSLoadSourceErrorOnRead: + case JSLoadSourceErrorNotCompiled: // Not bytecode, fall through. return JSExecutor::loadApplicationScript(fd, sourceURL); - case JSCompiledSourceErrorVersionMismatch: + case JSLoadSourceErrorVersionMismatch: throw std::runtime_error("Compiled Source Version Mismatch"); - case JSCompiledSourceErrorNone: + case JSLoadSourceErrorNone: folly::throwOnFail( bcSourceCode != nullptr, "Unexpected error opening compiled bundle"