[ fix ] Add missing reserved words to JS backend

This commit is contained in:
Eric Corson 2022-08-12 10:07:33 +01:00 committed by G. Allais
parent e29e2289e7
commit 8684ca4d3d

View File

@ -81,10 +81,12 @@ jsIdent s = concatMap okchar (unpack s)
jsReservedNames : List String
jsReservedNames =
[ "var", "switch"
, "return", "const"
, "function", "break"
, "continue"
[ "await", "break", "case", "catch", "class", "const", "continue", "debugger"
, "default", "delete", "do", "else", "enum", "export", "extends", "false"
, "finally", "for", "function", "if", "implements", "import", "in"
, "instanceof", "interface", "let", "new", "null", "package", "private"
, "protected", "public", "return", "static", "super", "switch", "this"
, "throw", "true", "try", "typeof", "var", "void", "while", "with", "yield"
]
keywordSafe : String -> String