diff --git a/src/utils/names.ts b/src/utils/names.ts index 1f0a9cc29e..2eafdf06a3 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',