fix(lib/modules/metro/patches): don't blacklist objects with no enumerable keys
This commit is contained in:
parent
e2dcc294e9
commit
215cd487b9
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ function handleFactoryCall(
|
||||||
|
|
||||||
// biome-ignore lint/suspicious/noFallthroughSwitchClause: Intentional
|
// biome-ignore lint/suspicious/noFallthroughSwitchClause: Intentional
|
||||||
case 'object': {
|
case 'object': {
|
||||||
if (Object.keys(exports).length) {
|
if (Reflect.ownKeys(exports).length) {
|
||||||
mInitialized.add(mInitializingId)
|
mInitialized.add(mInitializingId)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue