mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
populate list of globals from globalThis object
This commit is contained in:
@@ -1,40 +1 @@
|
||||
export const globals = new Set([
|
||||
'globalThis',
|
||||
'Promise',
|
||||
// TODO Symbol
|
||||
'URL',
|
||||
'Set',
|
||||
'Map',
|
||||
"Infinity",
|
||||
"NaN",
|
||||
"undefined",
|
||||
"Function",
|
||||
"Object",
|
||||
"Array",
|
||||
"Number",
|
||||
"String",
|
||||
"Boolean",
|
||||
"Date",
|
||||
"Math",
|
||||
"RegExp",
|
||||
"JSON",
|
||||
"Error",
|
||||
"EvalError",
|
||||
"RangeError",
|
||||
"ReferenceError",
|
||||
"SyntaxError",
|
||||
"TypeError",
|
||||
"URIError",
|
||||
"isNaN",
|
||||
"isFinite",
|
||||
"parseFloat",
|
||||
"parseInt",
|
||||
"eval",
|
||||
"escape",
|
||||
"unescape",
|
||||
"decodeURI",
|
||||
"decodeURIComponent",
|
||||
"encodeURI",
|
||||
"encodeURIComponent",
|
||||
"console",
|
||||
])
|
||||
export const globals = new Set(Object.getOwnPropertyNames(globalThis))
|
||||
|
||||
Reference in New Issue
Block a user