diff --git a/src/compiler/utils/names.ts b/src/compiler/utils/names.ts index 9805c92b91..c5a67a651b 100644 --- a/src/compiler/utils/names.ts +++ b/src/compiler/utils/names.ts @@ -14,7 +14,9 @@ export const globals = new Set([ 'encodeURI', 'encodeURIComponent', 'Error', + 'EvalError', 'Infinity', + 'InternalError', 'Intl', 'isFinite', 'isNaN', @@ -29,11 +31,16 @@ export const globals = new Set([ 'process', 'Promise', 'prompt', + 'RangeError', + 'ReferenceError', 'RegExp', 'Set', 'String', + 'SyntaxError', + 'TypeError', 'undefined', - 'window', + 'URIError', + 'window' ]); export const reserved = new Set([