Skip to content

Commit

Permalink
Merge pull request #2649 from EmilTholin/alert-global
Browse files Browse the repository at this point in the history
Add alert, confirm, and prompt to globals
  • Loading branch information
Rich-Harris committed May 4, 2019
2 parents 0f07acc + b0e0572 commit 7b99299
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -24,6 +26,7 @@ export const globals = new Set([
'parseInt',
'process',
'Promise',
'prompt',
'RegExp',
'Set',
'String',
Expand Down

0 comments on commit 7b99299

Please sign in to comment.