aboutsummaryrefslogtreecommitdiff
path: root/src/json_parser.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/json_parser.zig')
-rw-r--r--src/json_parser.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json_parser.zig b/src/json_parser.zig
index b420cbd43..4c6843be4 100644
--- a/src/json_parser.zig
+++ b/src/json_parser.zig
@@ -628,7 +628,7 @@ pub fn toAST(
return toAST(allocator, string, @as(string, @tagName(value)));
},
- .ErrorSet => return try toAST(allocator, []const u8, std.mem.span(@errorName(value))),
+ .ErrorSet => return try toAST(allocator, []const u8, bun.asByteSlice(@errorName(value))),
.Union => |Union| {
const info = Union;
if (info.tag_type) |UnionTagType| {