aboutsummaryrefslogtreecommitdiff
path: root/src/install/lockfile.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/install/lockfile.zig')
-rw-r--r--src/install/lockfile.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install/lockfile.zig b/src/install/lockfile.zig
index 835298372..85e82e5a9 100644
--- a/src/install/lockfile.zig
+++ b/src/install/lockfile.zig
@@ -2203,7 +2203,7 @@ pub const Package = extern struct {
// A valid package.json always has "{}" characters
if (source.contents.len < 2) return error.InvalidPackageJSON;
- var json = json_parser.ParseJSON(&source, log, allocator) catch |err| {
+ var json = json_parser.ParseJSONUTF8(&source, log, allocator) catch |err| {
if (Output.enable_ansi_colors) {
log.printForLogLevelWithEnableAnsiColors(Output.errorWriter(), true) catch {};
} else {