| ... | ... | @@ -1788,6 +1788,14 @@ fn walkInstruction( |
| 1788 | 1788 | array_data[idx] = wr.expr.as.exprArg; |
| 1789 | 1789 | } |
| 1790 | 1790 | |
| 1791 | // @check |
| 1792 | // not working with |
| 1793 | // const value_slice_float = []f32{42.0}; |
| 1794 | // const value_slice_float2: []f32 = .{42.0}; |
| 1795 | // rendering [][]f32 |
| 1796 | // the reason for that is it's initialized as a pointer |
| 1797 | // in this case getting the last type index works fine |
| 1798 | // but when it's not after a pointer it's thrown an error in js. |
| 1791 | 1799 | const type_slot_index = self.types.items.len; |
| 1792 | 1800 | try self.types.append(self.arena, .{ .Pointer = .{ |
| 1793 | 1801 | .size = .Slice, |