From 215cd487b94fa869e35ad18f292e5b1cd3f5456a Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sun, 2 Aug 2026 16:19:31 +0700 Subject: [PATCH] fix(lib/modules/metro/patches): don't blacklist objects with no enumerable keys --- lib/modules/src/metro/patches.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/src/metro/patches.ts b/lib/modules/src/metro/patches.ts index 58b4b7a..0033c33 100644 --- a/lib/modules/src/metro/patches.ts +++ b/lib/modules/src/metro/patches.ts @@ -172,7 +172,7 @@ function handleFactoryCall( // biome-ignore lint/suspicious/noFallthroughSwitchClause: Intentional case 'object': { - if (Object.keys(exports).length) { + if (Reflect.ownKeys(exports).length) { mInitialized.add(mInitializingId) break }