Switch ComponentScript/iOS to new Buck integration

Reviewed By: adamjernst

Differential Revision: D5121635

fbshipit-source-id: 7b7aaf70c54c1c232130afd34071adff9cbe54e1
This commit is contained in:
David Aurelio 2017-05-25 15:16:06 -07:00 committed by Facebook Github Bot
parent ff78a8de22
commit 9f81baa834
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ JSValueRef JSCExecutor::nativeRequire(
}
double moduleId = Value(m_context, arguments[0]).asNumber();
if (moduleId <= 0) {
if (moduleId < 0) {
throw std::invalid_argument(folly::to<std::string>("Received invalid module ID: ",
Value(m_context, arguments[0]).toString().str()));
}