diff options
author | 2021-05-29 13:33:48 -0700 | |
---|---|---|
committer | 2021-05-29 13:33:48 -0700 | |
commit | 3436ee9deddf21594a0b4fb3640a7596ea078093 (patch) | |
tree | c053cad5df831b5c376f404879c28e6e69d6cc7e /src/js_ast.zig | |
parent | 923e2c5c5d43adce832c8eb4999a8070dbd8cced (diff) | |
download | bun-3436ee9deddf21594a0b4fb3640a7596ea078093.tar.gz bun-3436ee9deddf21594a0b4fb3640a7596ea078093.tar.zst bun-3436ee9deddf21594a0b4fb3640a7596ea078093.zip |
microp
Former-commit-id: b876a8d4800779c6728a61ec51cd168d7307bc9d
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, |