diff options
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r-- | src/js_ast.zig | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig index efd2374e9..5b3f1a7c1 100644 --- a/src/js_ast.zig +++ b/src/js_ast.zig @@ -4333,7 +4333,15 @@ pub const Scope = struct { // Do not make this a packed struct // Two hours of debugging time lost to that. - pub const Member = struct { ref: Ref, loc: logger.Loc }; + // It causes a crash due to undefined memory + pub const Member = struct { + ref: Ref, + loc: logger.Loc, + + pub fn eql(a: Member, b: Member) bool { + return @call(.{ .modifier = .always_inline }, Ref.eql, .{ a.ref, b.ref }) and a.loc.start == b.loc.start; + } + }; pub const Kind = enum(u8) { block, |