| author | |
| committer | |
| log | b28b3f6f7b1dd4c3c8a0f3d3a6305a84daed8ead |
| tree | afc3f34fa941cf26b8934bbcbdc64fdcf5bbc0e6 |
| parent | 273da9efd9238e20da1299789537b00de2f0ebd8 |
1 files changed, 2 insertions(+), 0 deletions(-)
src/value.zig+2| ... | ... | @@ -2336,6 +2336,8 @@ pub const Value = extern union { |
| 2336 | 2336 | buffer: *ElemValueBuffer, |
| 2337 | 2337 | ) error{OutOfMemory}!Value { |
| 2338 | 2338 | switch (val.tag()) { |
| 2339 | // This is the case of accessing an element of an undef array. | |
| 2340 | .undef => return Value.undef, | |
| 2339 | 2341 | .empty_array => unreachable, // out of bounds array index |
| 2340 | 2342 | .empty_struct_value => unreachable, // out of bounds array index |
| 2341 | 2343 |