aboutsummaryrefslogtreecommitdiff
path: root/src/js_parser.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/js_parser.zig')
-rw-r--r--src/js_parser.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js_parser.zig b/src/js_parser.zig
index bd3c0f140..b116aa2e4 100644
--- a/src/js_parser.zig
+++ b/src/js_parser.zig
@@ -446,6 +446,9 @@ pub const TypeScript = struct {
// Look ahead to see if this should be an arrow function instead
var is_ts_arrow_fn = false;
+ if (p.lexer.token == .t_const) {
+ try p.lexer.next();
+ }
if (p.lexer.token == .t_identifier) {
try p.lexer.next();
if (p.lexer.token == .t_comma) {