mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 11:34:23 +00:00
Backed out D3190875
Reviewed By: astreet Differential Revision: D3212319 fb-gh-sync-id: 2b93bf83c2e7f687ad1762a199c9a150862395ff fbshipit-source-id: 2b93bf83c2e7f687ad1762a199c9a150862395ff
This commit is contained in:
parent
7946160733
commit
ed7d13bf57
@ -59,11 +59,10 @@ public class JavaScriptModuleRegistry {
|
||||
return (T) module;
|
||||
}
|
||||
|
||||
JavaScriptModuleRegistration registration = mModuleRegistrations.get(moduleInterface);
|
||||
if (registration == null) {
|
||||
throw new IllegalArgumentException(
|
||||
"JS module " + moduleInterface.getSimpleName() + " hasn't been registered!");
|
||||
}
|
||||
JavaScriptModuleRegistration registration =
|
||||
Assertions.assertNotNull(
|
||||
mModuleRegistrations.get(moduleInterface),
|
||||
"JS module " + moduleInterface.getSimpleName() + " hasn't been registered!");
|
||||
JavaScriptModule interfaceProxy = (JavaScriptModule) Proxy.newProxyInstance(
|
||||
moduleInterface.getClassLoader(),
|
||||
new Class[]{moduleInterface},
|
||||
|
Loading…
x
Reference in New Issue
Block a user