Skip to content

Commit 313f56c

Browse files
authoredAug 3, 2019
Merge pull request #3316 from RedHatter/missing-globals
Missing globals
2 parents 981f30d + d2ac3d8 commit 313f56c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/compiler/utils/names.ts

+4
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ export const globals = new Set([
1515
'encodeURIComponent',
1616
'Error',
1717
'EvalError',
18+
'history',
1819
'Infinity',
1920
'InternalError',
2021
'Intl',
2122
'isFinite',
2223
'isNaN',
2324
'JSON',
25+
'localStorage',
2426
'Map',
2527
'Math',
2628
'NaN',
29+
'navigator',
2730
'Number',
2831
'Object',
2932
'parseFloat',
@@ -34,6 +37,7 @@ export const globals = new Set([
3437
'RangeError',
3538
'ReferenceError',
3639
'RegExp',
40+
'sessionStorage',
3741
'Set',
3842
'String',
3943
'SyntaxError',

0 commit comments

Comments
 (0)
Please sign in to comment.