diff options
-rw-r--r-- | src/string_immutable.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig index a6f018192..0030b8708 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -501,7 +501,7 @@ pub fn toUTF8Alloc(allocator: *std.mem.Allocator, js: []const u16) !string { } } const width = encodeWTF8Rune(&temp, r1); - list.appendSlice(temp[0..width]) catch unreachable; + try list.appendSlice(temp[0..width]); } return list.items; } |