fix utf8 handling when importing json (#14168)

This commit is contained in:
snwy
2024-09-25 17:50:11 -07:00
committed by GitHub
parent 80db770521
commit af12ff104a
10 changed files with 71 additions and 18 deletions

View File

@@ -132,7 +132,7 @@ pub fn parseJSON(
bun.JSAst.Stmt.Data.Store.reset();
}
debug("parse (JSON, {d} bytes)", .{source.len});
var json = bun.JSON.ParseJSON(&json_src, &log, arena) catch {
var json = bun.JSON.ParseJSON(&json_src, &log, arena, false) catch {
return error.InvalidJSON;
};