From bdf01d632cd38ce810d86238790c93244a1db53f Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 25 Jun 2019 10:38:04 -0400 Subject: [PATCH] add a few more known globals --- src/compiler/utils/names.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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([