diff --git a/src/utils/names.ts b/src/utils/names.ts index 2eafdf06a33d..f1413548aa57 100644 --- a/src/utils/names.ts +++ b/src/utils/names.ts @@ -10,6 +10,7 @@ export const globals = new Set([ 'Date', 'decodeURI', 'decodeURIComponent', + 'document', 'encodeURI', 'encodeURIComponent', 'Infinity', @@ -31,6 +32,7 @@ export const globals = new Set([ 'Set', 'String', 'undefined', + 'window', ]); export const reserved = new Set([