| ... | ... | @@ -1346,7 +1346,7 @@ fn unescapeStringAlloc(alloc: *Allocator, input: []const u8) ![]u8 { |
| 1346 | 1346 | |
| 1347 | 1347 | const secondCodeUnit = std.fmt.parseInt(u16, input[inIndex+8 .. inIndex+12], 16) catch unreachable; |
| 1348 | 1348 | |
| 1349 | | if(std.unicode.utf16leToUtf8(output[outIndex..], [2]u16{ firstCodeUnit, secondCodeUnit })) |byteCount| { |
| 1349 | if(std.unicode.utf16leToUtf8(output[outIndex..], &[2]u16{ firstCodeUnit, secondCodeUnit })) |byteCount| { |
| 1350 | 1350 | outIndex += byteCount; |
| 1351 | 1351 | inIndex += 12; |
| 1352 | 1352 | } else |_| { |