From b0e057233cf4caeae4c1e62527b6476c9b8c375f Mon Sep 17 00:00:00 2001 From: Emil Tholin Date: Thu, 2 May 2019 09:32:06 +0200 Subject: [PATCH] Add alert, confirm, and prompt to globals --- src/utils/names.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/names.ts b/src/utils/names.ts index 1f0a9cc29e3c..2eafdf06a33d 100644 --- a/src/utils/names.ts +++ b/src/utils/names.ts @@ -2,8 +2,10 @@ import { isIdentifierStart, isIdentifierChar } from 'acorn'; import full_char_code_at from './full_char_code_at'; export const globals = new Set([ + 'alert', 'Array', 'Boolean', + 'confirm', 'console', 'Date', 'decodeURI', @@ -24,6 +26,7 @@ export const globals = new Set([ 'parseInt', 'process', 'Promise', + 'prompt', 'RegExp', 'Set', 'String',