From 5aecb3640f01f7fca5a9377330099de4f0bf71a2 Mon Sep 17 00:00:00 2001 From: john <14875933+elamje@users.noreply.github.com> Date: Sun, 7 Aug 2022 15:53:04 -0500 Subject: [PATCH 1/2] Add HTMLCanvasElement to global Compiler is not recognizing this name --- src/compiler/utils/names.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/utils/names.ts b/src/compiler/utils/names.ts index e091edb19eba..2a7e14bb9a09 100644 --- a/src/compiler/utils/names.ts +++ b/src/compiler/utils/names.ts @@ -27,6 +27,7 @@ export const globals = new Set([ 'globalThis', 'history', 'HTMLElement', + 'HTMLCanvasElement', 'Infinity', 'InternalError', 'Intl', From 8c05364581be2cefa375c4cffa5ea32c9473bdb6 Mon Sep 17 00:00:00 2001 From: john <14875933+elamje@users.noreply.github.com> Date: Sun, 7 Aug 2022 16:00:37 -0500 Subject: [PATCH 2/2] Fix to match alpha ordering convention --- src/compiler/utils/names.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/utils/names.ts b/src/compiler/utils/names.ts index 2a7e14bb9a09..c642ed11e13a 100644 --- a/src/compiler/utils/names.ts +++ b/src/compiler/utils/names.ts @@ -26,8 +26,8 @@ export const globals = new Set([ 'global', 'globalThis', 'history', - 'HTMLElement', 'HTMLCanvasElement', + 'HTMLElement', 'Infinity', 'InternalError', 'Intl',