Add alert, confirm, and prompt to globals

pull/2649/head
Emil Tholin 6 years ago
parent e73084b6af
commit b0e057233c

@ -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