Skip to content

Commit 2fd593f

Browse files
John MuhlConduitry
John Muhl
authored andcommitted
Add more globals
1 parent 8b9b2c2 commit 2fd593f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/compiler/utils/names.ts

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export const globals = new Set([
55
'alert',
66
'Array',
77
'Boolean',
8+
'clearInterval',
9+
'clearTimeout',
810
'confirm',
911
'console',
1012
'Date',
@@ -16,6 +18,9 @@ export const globals = new Set([
1618
'Error',
1719
'EvalError',
1820
'Event',
21+
'fetch',
22+
'global',
23+
'globalThis',
1924
'history',
2025
'Infinity',
2126
'InternalError',
@@ -41,11 +46,14 @@ export const globals = new Set([
4146
'RegExp',
4247
'sessionStorage',
4348
'Set',
49+
'setInterval',
50+
'setTimeout',
4451
'String',
4552
'SyntaxError',
4653
'TypeError',
4754
'undefined',
4855
'URIError',
56+
'URL',
4957
'window'
5058
]);
5159

0 commit comments

Comments
 (0)