[K/JS] Exclude default from the regular reserved keywords to give ability to export declarations with default export ^KT-54480 Fixed
fix(KT-54480): exclude default from the regular reserved keywords to give ability to export intities with default export. Merge-request: KT-MR-7459 Merged-by: Artem Kobzar <Artem.Kobzar@jetbrains.com>
This commit is contained in:
@@ -51,9 +51,11 @@ fun String.isValidES5Identifier(): Boolean {
|
||||
return true
|
||||
}
|
||||
|
||||
val RESERVED_KEYWORDS: Set<String> = setOf(
|
||||
val SPECIAL_KEYWORDS: Set<String> = setOf("default")
|
||||
|
||||
val RESERVED_KEYWORDS: Set<String> = SPECIAL_KEYWORDS + setOf(
|
||||
// keywords
|
||||
"await", "break", "case", "catch", "continue", "debugger", "default", "delete", "do", "else", "finally", "for", "function", "if",
|
||||
"await", "break", "case", "catch", "continue", "debugger", "delete", "do", "else", "finally", "for", "function", "if",
|
||||
"in", "instanceof", "new", "return", "switch", "this", "throw", "try", "typeof", "var", "void", "while", "with",
|
||||
|
||||
// future reserved words
|
||||
|
||||
Reference in New Issue
Block a user