diff options
author | 2022-11-26 21:20:33 -0800 | |
---|---|---|
committer | 2022-11-26 21:20:33 -0800 | |
commit | b7850565f43e8502cf148f46a4405835f5f73335 (patch) | |
tree | f6edb4ea50c7345276e8ea4ed32a600b80c09060 /src/string_immutable.zig | |
parent | 10996a797a6cae831a292b40f80ed3446277eccb (diff) | |
download | bun-b7850565f43e8502cf148f46a4405835f5f73335.tar.gz bun-b7850565f43e8502cf148f46a4405835f5f73335.tar.zst bun-b7850565f43e8502cf148f46a4405835f5f73335.zip |
Update string_immutable.zig
Diffstat (limited to '')
-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 598495efa..545e807b4 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -956,7 +956,7 @@ pub fn toUTF16Alloc(allocator: std.mem.Allocator, bytes: []const u8, comptime fa else => { if (fail_if_invalid) { allocator.free(out); - return error.InvalidUTF8; + return error.InvalidByteSequence; } first_non_ascii = @truncate(u32, result.count); |