Switch ComponentScript/iOS to new Buck integration
Reviewed By: adamjernst Differential Revision: D5121635 fbshipit-source-id: 7b7aaf70c54c1c232130afd34071adff9cbe54e1
This commit is contained in:
parent
ff78a8de22
commit
9f81baa834
|
@ -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()));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue