Skip to content

Commit e6f08f9

Browse files
committed
#2806 fix: typo + added null to reserved js keywords
1 parent d3329df commit e6f08f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/macro-support/src/parser.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use syn::{self, FnArg, Pat, Signature};
1616
thread_local!(static ATTRS: AttributeParseState = Default::default());
1717

1818
/// Javascript keywords which are not keywords in Rust.
19-
const JS_KEYWORDS: [&str; 19] = [
19+
const JS_KEYWORDS: [&str; 20] = [
2020
"class",
2121
"case",
2222
"catch",
@@ -28,8 +28,9 @@ const JS_KEYWORDS: [&str; 19] = [
2828
"finally",
2929
"function",
3030
"import",
31-
"instaceof",
31+
"instanceof",
3232
"new",
33+
"null",
3334
"switch",
3435
"this",
3536
"throw",

0 commit comments

Comments
 (0)