diff --git a/src/compiler/utils/names.ts b/src/compiler/utils/names.ts index 1729c38efa..8afc80958f 100644 --- a/src/compiler/utils/names.ts +++ b/src/compiler/utils/names.ts @@ -14,8 +14,6 @@ export const globals = new Set([ 'decodeURIComponent', 'document', 'Element', - 'HTMLElement', - 'SVGElement', 'encodeURI', 'encodeURIComponent', 'Error', @@ -26,6 +24,7 @@ export const globals = new Set([ 'global', 'globalThis', 'history', + 'HTMLElement', 'Infinity', 'InternalError', 'Intl', @@ -38,8 +37,8 @@ export const globals = new Set([ 'Math', 'NaN', 'navigator', - 'Number', 'Node', + 'Number', 'Object', 'parseFloat', 'parseInt', @@ -54,6 +53,7 @@ export const globals = new Set([ 'setInterval', 'setTimeout', 'String', + 'SVGElement', 'SyntaxError', 'TypeError', 'undefined',