diff --git a/src/compiler/utils/names.ts b/src/compiler/utils/names.ts
index c5a67a651be7..8d9150bc1880 100644
--- a/src/compiler/utils/names.ts
+++ b/src/compiler/utils/names.ts
@@ -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',
@@ -34,6 +37,7 @@ export const globals = new Set([
 	'RangeError',
 	'ReferenceError',
 	'RegExp',
+	'sessionStorage',
 	'Set',
 	'String',
 	'SyntaxError',