summaryrefslogtreecommitdiff
path: root/ext/node/analyze.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/analyze.rs')
-rw-r--r--ext/node/analyze.rs40
1 files changed, 31 insertions, 9 deletions
diff --git a/ext/node/analyze.rs b/ext/node/analyze.rs
index 2e5c2d15f..7d98f53db 100644
--- a/ext/node/analyze.rs
+++ b/ext/node/analyze.rs
@@ -366,9 +366,16 @@ fn esm_code_from_top_level_decls(
static RESERVED_WORDS: Lazy<HashSet<&str>> = Lazy::new(|| {
HashSet::from([
+ "abstract",
+ "arguments",
+ "async",
+ "await",
+ "boolean",
"break",
+ "byte",
"case",
"catch",
+ "char",
"class",
"const",
"continue",
@@ -376,41 +383,56 @@ static RESERVED_WORDS: Lazy<HashSet<&str>> = Lazy::new(|| {
"default",
"delete",
"do",
+ "double",
"else",
+ "enum",
+ "eval",
"export",
"extends",
"false",
+ "final",
"finally",
+ "float",
"for",
"function",
+ "get",
+ "goto",
"if",
+ "implements",
"import",
"in",
"instanceof",
+ "int",
+ "interface",
+ "let",
+ "long",
+ "native",
"new",
"null",
+ "package",
+ "private",
+ "protected",
+ "public",
"return",
+ "set",
+ "short",
+ "static",
"super",
"switch",
+ "synchronized",
"this",
"throw",
+ "throws",
+ "transient",
"true",
"try",
"typeof",
"var",
"void",
+ "volatile",
"while",
"with",
"yield",
- "let",
- "enum",
- "implements",
- "interface",
- "package",
- "private",
- "protected",
- "public",
- "static",
])
});