mirror of
https://github.com/idris-lang/Idris2.git
synced 2025-01-02 00:27:34 +03:00
[ fix ] Add missing reserved words to JS backend
This commit is contained in:
parent
e29e2289e7
commit
8684ca4d3d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user