Skip to content

Commit

Permalink
Merge pull request #2722 from getkey/window-globals
Browse files Browse the repository at this point in the history
Add `window` and `document` to globals
  • Loading branch information
Rich-Harris committed May 9, 2019
2 parents 3d9cb3b + 4631b1b commit aa5b522
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const globals = new Set([
'Date',
'decodeURI',
'decodeURIComponent',
'document',
'encodeURI',
'encodeURIComponent',
'Infinity',
Expand All @@ -31,6 +32,7 @@ export const globals = new Set([
'Set',
'String',
'undefined',
'window',
]);

export const reserved = new Set([
Expand Down

0 comments on commit aa5b522

Please sign in to comment.