aboutsummaryrefslogtreecommitdiff
path: root/src/js_ast.zig
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-05-10 23:55:27 -0700
committerGravatar GitHub <noreply@github.com> 2023-05-10 23:55:27 -0700
commit8f4a5903abb20c5c874365d6ac552497ea89cd04 (patch)
tree073fe3a7c87d918f956381f7814f59cfdba4bf2d /src/js_ast.zig
parent0e5f0940ee2833c970b050824e56a865ed1e1050 (diff)
downloadbun-8f4a5903abb20c5c874365d6ac552497ea89cd04.tar.gz
bun-8f4a5903abb20c5c874365d6ac552497ea89cd04.tar.zst
bun-8f4a5903abb20c5c874365d6ac552497ea89cd04.zip
make sure vars can be hoisted in catch scope (#2847)
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r--src/js_ast.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig
index 1459d0a37..275d1509c 100644
--- a/src/js_ast.zig
+++ b/src/js_ast.zig
@@ -6558,13 +6558,13 @@ pub const Scope = struct {
label,
class_name,
class_body,
+ catch_binding,
// The scopes below stop hoisted variables from extending into parent scopes
entry, // This is a module, TypeScript enum, or TypeScript namespace
function_args,
function_body,
class_static_init,
- catch_binding,
pub fn jsonStringify(self: @This(), opts: anytype, o: anytype) !void {
return try std.json.stringify(@tagName(self), opts, o);