From cfc73be90f782c791227b6ec63e258a1e3961889 Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Thu, 29 Oct 2020 00:24:21 +0800 Subject: [PATCH] add Node and Element as known globals (#5601) --- src/compiler/utils/names.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/utils/names.ts b/src/compiler/utils/names.ts index 7b6a6f55e064..255d56a2184a 100644 --- a/src/compiler/utils/names.ts +++ b/src/compiler/utils/names.ts @@ -13,6 +13,7 @@ export const globals = new Set([ 'decodeURI', 'decodeURIComponent', 'document', + 'Element', 'encodeURI', 'encodeURIComponent', 'Error', @@ -36,6 +37,7 @@ export const globals = new Set([ 'NaN', 'navigator', 'Number', + 'Node', 'Object', 'parseFloat', 'parseInt',