| author | |
| committer | |
| log | 076b54c8e7e8472556558543c6fb3eaa8967de78 |
| tree | ba4beccf8f871b30fbfcf7268cfae0ad8c12b2a0 |
| parent | 1ae839cd248c9eee8a9ff0643d7b80628f5f5533 |
Fixes regression introduced in
db33ee45b7261c9ec62a1087cfc9377bc4e7aa8f.
Found from compiling bun. Unfortunately we do not have a behavior test
reduction for this bug.1 files changed, 2 insertions(+), 2 deletions(-)
src/value.zig+2-2| ... | ... | @@ -483,10 +483,10 @@ pub const Value = struct { |
| 483 | 483 | } |
| 484 | 484 | |
| 485 | 485 | pub fn getFunction(val: Value, mod: *Module) ?InternPool.Key.Func { |
| 486 | return switch (mod.intern_pool.indexToKey(val.toIntern())) { | |
| 486 | return if (val.ip_index != .none) switch (mod.intern_pool.indexToKey(val.toIntern())) { | |
| 487 | 487 | .func => |x| x, |
| 488 | 488 | else => null, |
| 489 | }; | |
| 489 | } else null; | |
| 490 | 490 | } |
| 491 | 491 | |
| 492 | 492 | pub fn getExternFunc(val: Value, mod: *Module) ?InternPool.Key.ExternFunc { |