| ... | @@ -2336,6 +2336,8 @@ pub const Value = extern union { | ... | @@ -2336,6 +2336,8 @@ pub const Value = extern union { |
| 2336 | buffer: *ElemValueBuffer, | 2336 | buffer: *ElemValueBuffer, |
| 2337 | ) error{OutOfMemory}!Value { | 2337 | ) error{OutOfMemory}!Value { |
| 2338 | switch (val.tag()) { | 2338 | switch (val.tag()) { |
| | 2339 | // This is the case of accessing an element of an undef array. |
| | 2340 | .undef => return Value.undef, |
| 2339 | .empty_array => unreachable, // out of bounds array index | 2341 | .empty_array => unreachable, // out of bounds array index |
| 2340 | .empty_struct_value => unreachable, // out of bounds array index | 2342 | .empty_struct_value => unreachable, // out of bounds array index |
| 2341 | | 2343 | |