From a46574eea8b0a0aca5c2fbdda6ecc61ee4763242 Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Wed, 28 Oct 2020 08:14:38 +0800 Subject: [PATCH] add Node and Element into global --- 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',