0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-25 09:09:35 +01:00

Merge pull request #2722 from getkey/window-globals

Add `window` and `document` to globals
This commit is contained in:
Rich Harris 2019-05-08 23:12:27 -04:00 committed by GitHub
commit aa5b52239f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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([