fix(lib/modules/metro): skip nativeModuleProxy existence check for bad exports check
This commit is contained in:
parent
c5caa63cef
commit
deb57ebe0a
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ export function _isExportsBad(exports: Metro.ModuleExports) {
|
|||
exports === null ||
|
||||
// Can't run isProxy() on this because this isn't your typical proxy:
|
||||
// https://github.com/discord/react-native/blob/master/packages/react-native/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp
|
||||
(globalThis.nativeModuleProxy && exports === nativeModuleProxy) ||
|
||||
exports === nativeModuleProxy ||
|
||||
// Checking if the object is empty
|
||||
(exports.__proto__ === Object.prototype && !Reflect.ownKeys(exports).length)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue