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.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/json_parser.zig b/src/json_parser.zig
index ed5e42d85..e8fbde12c 100644
--- a/src/json_parser.zig
+++ b/src/json_parser.zig
@@ -178,7 +178,7 @@ fn JSONLikeParser(opts: js_lexer.JSONOptions) type {
is_single_line = false;
}
try p.lexer.expect(.t_close_bracket);
- return p.e(E.Array{ .items = exprs.items }, loc);
+ return p.e(E.Array{ .items = ExprNodeList.fromList(exprs), .is_single_line = is_single_line }, loc);
},
.t_open_brace => {
try p.lexer.next();
@@ -245,7 +245,7 @@ fn JSONLikeParser(opts: js_lexer.JSONOptions) type {
}
try p.lexer.expect(.t_close_brace);
return p.e(E.Object{
- .properties = properties.items,
+ .properties = G.Property.List.fromList(properties),
.is_single_line = is_single_line,
}, loc);
},
@@ -484,7 +484,7 @@ const DotEnvJSONParser = JSONLikeParser(js_lexer.JSONOptions{
var empty_string = E.String{ .utf8 = "" };
const TSConfigParser = JSONLikeParser(js_lexer.JSONOptions{ .allow_comments = true, .is_json = true, .allow_trailing_commas = true });
var empty_object = E.Object{};
-var empty_array = E.Array{ .items = &[_]ExprNodeIndex{} };
+var empty_array = E.Array{};
var empty_string_data = Expr.Data{ .e_string = &empty_string };
var empty_object_data = Expr.Data{ .e_object = &empty_object };
var empty_array_data = Expr.Data{ .e_array = &empty_array };
'>fix(string_immutable): fix `toUTF16Alloc` for bindgen w/ `use_simdutf = false...Gravatar Derrick Farris 1-1/+2 2023-02-10Add bun-ecosystem for running tests on npm packagesGravatar Ashcon Partovi 7-0/+201 2023-02-10[install] fix duplicate check on `peerDependencies` (#2039)Gravatar Alex Lam S.L 2-9/+53 2023-02-10drop ASCII double-scan and other minor clean-ups (#2038)Gravatar Alex Lam S.L 1-137/+86 2023-02-10Enable https://github.com/tc39/proposal-set-methodsGravatar Jarred Sumner 1-0/+1 2023-02-09Upgrade WebKitGravatar Jarred Sumner 11-31/+31 2023-02-09fix assertion failure (#2033)Gravatar Alex Lam S.L 2-5/+10 2023-02-09[install] fix flaky tests (#2032)Gravatar Alex Lam S.L 2-37/+37 2023-02-09[simdutf] workaround validation OOB access (#2031)Gravatar Alex Lam S.L 2-15/+18 2023-02-09Workaround https://github.com/simdutf/simdutf/issues/213Gravatar Jarred Sumner 1-3/+4 2023-02-09[streams] fix byte accounting (#2029)Gravatar Alex Lam S.L 2-31/+45 2023-02-09Add a note about builtinsGravatar Jarred Sumner 1-0/+16 2023-02-09[bun:test] Auto-import jest globals in test filesGravatar Jarred Sumner 9-0/+135 2023-02-08move some code aroundGravatar Jarred Sumner 1-64/+91 2023-02-08Update CONTRIBUTING.mdGravatar Jarred Sumner 1-1/+1