Merge pull request #2649 from EmilTholin/alert-global

Add alert, confirm, and prompt to globals
pull/2670/head
Rich Harris 6 years ago committed by GitHub
commit 7b99299691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,8 +2,10 @@ import { isIdentifierStart, isIdentifierChar } from 'acorn';
import full_char_code_at from './full_char_code_at'; import full_char_code_at from './full_char_code_at';
export const globals = new Set([ export const globals = new Set([
'alert',
'Array', 'Array',
'Boolean', 'Boolean',
'confirm',
'console', 'console',
'Date', 'Date',
'decodeURI', 'decodeURI',
@ -24,6 +26,7 @@ export const globals = new Set([
'parseInt', 'parseInt',
'process', 'process',
'Promise', 'Promise',
'prompt',
'RegExp', 'RegExp',
'Set', 'Set',
'String', 'String',

Loading…
Cancel
Save