Prevent generation of function names that clash with standard objects

This commit is contained in:
Alexey Andreev 2018-11-14 13:55:36 +03:00
parent 064888c9a1
commit fe151d525a

View File

@ -25,7 +25,7 @@ public final class RenderingUtil {
"catch", "class", "const", "continue", "debugger", "default", "delete", "do", "else", "export",
"extends", "finally", "for", "function", "if", "import", "in", "instanceof", "new", "return",
"super", "switch", "this", "throw", "try", "typeof", "var", "void", "while", "with", "yield",
"NaN")));
"NaN", "Map", "Set", "eval", "Math", "Date", "JSON", "Intl")));
public static final String VARIABLE_START_CHARS = "abcdefghijklmnopqrstuvwxyz";
public static final String VARIABLE_PART_CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789$_";