Merge pull request #2722 from getkey/window-globals

Add `window` and `document` to globals
pull/2726/head
Rich Harris 6 years ago committed by GitHub
commit aa5b52239f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,6 +10,7 @@ export const globals = new Set([
'Date', 'Date',
'decodeURI', 'decodeURI',
'decodeURIComponent', 'decodeURIComponent',
'document',
'encodeURI', 'encodeURI',
'encodeURIComponent', 'encodeURIComponent',
'Infinity', 'Infinity',
@ -31,6 +32,7 @@ export const globals = new Set([
'Set', 'Set',
'String', 'String',
'undefined', 'undefined',
'window',
]); ]);
export const reserved = new Set([ export const reserved = new Set([

Loading…
Cancel
Save