diff options
author | 2023-08-23 17:22:54 -0700 | |
---|---|---|
committer | 2023-08-23 17:22:54 -0700 | |
commit | 20d42dfaa3c23c1302dd3d5837ba6714dc891ac4 (patch) | |
tree | 6209daa8075a5e1076d1589a32235e1b0ebab156 /src/js_parser.zig | |
parent | 3556fa3b1e80c9e3587c053a7761d07e65e2dcd8 (diff) | |
download | bun-20d42dfaa3c23c1302dd3d5837ba6714dc891ac4.tar.gz bun-20d42dfaa3c23c1302dd3d5837ba6714dc891ac4.tar.zst bun-20d42dfaa3c23c1302dd3d5837ba6714dc891ac4.zip |
Fix `<const T>() =>` (#4278)bun-v0.8.0
Diffstat (limited to 'src/js_parser.zig')
-rw-r--r-- | src/js_parser.zig | 3 |
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) { |