distinctiomagnam
Version:
JavaScript Obfuscation Tool.
82 lines (80 loc) • 1.03 kB
text/typescript
/**
* Keywords disallowed for variable names in ES5 and under.
*/
export const reservedKeywords = new Set([
"abstract",
"arguments",
"await",
"boolean",
"break",
"byte",
"case",
"catch",
"char",
"class",
"const",
"continue",
"debugger",
"default",
"delete",
"do",
"double",
"else",
"enum",
"eval",
"export",
"extends",
"false",
"final",
"finally",
"float",
"for",
"function",
"goto",
"if",
"implements",
"import",
"in",
"instanceof",
"int",
"interface",
"let",
"long",
"native",
"new",
"null",
"package",
"private",
"protected",
"public",
"return",
"short",
"static",
"super",
"switch",
"synchronized",
"this",
"throw",
"throws",
"transient",
"true",
"try",
"typeof",
"var",
"void",
"volatile",
"while",
"with",
"yield",
]);
/**
* Identifiers that are not actually variables.
*/
export const reservedIdentifiers = new Set([
"undefined",
"null",
"NaN",
"Infinity",
"eval",
"arguments",
]);