Skip to content

Commit

Permalink
fix: ignore node (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
sam committed Aug 9, 2022
1 parent 6087255 commit bf922b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/closure/createClosure.ts
Expand Up @@ -259,7 +259,11 @@ export async function createClosureInfoAsync(
for (const key of Object.getOwnPropertyNames(current)) {
// "GLOBAL" and "root" are deprecated and give warnings if you try to access them. So
// just skip them.
if (key !== "GLOBAL" && key !== "root") {
if (
key !== "GLOBAL" &&
key !== "root" &&
key !== "$jsDebugIsRegistered"
) {
await addGlobalInfoAsync(key);
}
}
Expand Down

0 comments on commit bf922b2

Please sign in to comment.