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

@@ -999,7 +999,7 @@ pub const StandaloneModuleGraph = struct {
bun.JSAst.Expr.Data.Store.reset();
bun.JSAst.Stmt.Data.Store.reset();
}
var json = bun.JSON.ParseJSON(&json_src, &log, arena) catch
var json = bun.JSON.ParseJSON(&json_src, &log, arena, false) catch
return error.InvalidSourceMap;
const mappings_str = json.get("mappings") orelse