Skip to content

Commit

Permalink
Merge pull request #3316 from RedHatter/missing-globals
Browse files Browse the repository at this point in the history
Missing globals
  • Loading branch information
Rich-Harris authored Aug 3, 2019
2 parents 981f30d + d2ac3d8 commit 313f56c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compiler/utils/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ export const globals = new Set([
'encodeURIComponent',
'Error',
'EvalError',
'history',
'Infinity',
'InternalError',
'Intl',
'isFinite',
'isNaN',
'JSON',
'localStorage',
'Map',
'Math',
'NaN',
'navigator',
'Number',
'Object',
'parseFloat',
Expand All @@ -34,6 +37,7 @@ export const globals = new Set([
'RangeError',
'ReferenceError',
'RegExp',
'sessionStorage',
'Set',
'String',
'SyntaxError',
Expand Down

0 comments on commit 313f56c

Please sign in to comment.