mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Meta+LibJS: Upgrade simdjson to the latest version
5e0ee26e8b pulls in an old version of
simdjson, this commit upgrades to the latest release.
This commit also pins `dav1d` to the version it was before this change.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
f77b72040e
commit
ea65181444
Notes:
github-actions[bot]
2026-01-16 12:12:22 +00:00
Author: https://github.com/alimpfard Commit: https://github.com/LadybirdBrowser/ladybird/commit/ea651814445 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7483 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/gmta ✅
@@ -719,7 +719,10 @@ static ThrowCompletionOr<Value> parse_simdjson_value(VM& vm, simdjson::ondemand:
|
||||
return parse_simdjson_array(vm, value);
|
||||
case simdjson::ondemand::json_type::object:
|
||||
return parse_simdjson_object(vm, value);
|
||||
case simdjson::ondemand::json_type::unknown:
|
||||
return vm.throw_completion<SyntaxError>(ErrorType::JsonMalformed);
|
||||
}
|
||||
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
@@ -760,7 +763,10 @@ static ThrowCompletionOr<Value> parse_simdjson_document(VM& vm, simdjson::ondema
|
||||
return parse_simdjson_array(vm, document);
|
||||
case simdjson::ondemand::json_type::object:
|
||||
return parse_simdjson_object(vm, document);
|
||||
case simdjson::ondemand::json_type::unknown:
|
||||
return vm.throw_completion<SyntaxError>(ErrorType::JsonMalformed);
|
||||
}
|
||||
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
@@ -861,7 +867,7 @@ JS_DEFINE_NATIVE_FUNCTION(JSONObject::raw_json)
|
||||
return vm.throw_completion<SyntaxError>(ErrorType::JsonMalformed);
|
||||
|
||||
simdjson::ondemand::json_type type;
|
||||
if (doc.type().get(type))
|
||||
if (doc.type().get(type) || type == simdjson::ondemand::json_type::unknown)
|
||||
return vm.throw_completion<SyntaxError>(ErrorType::JsonMalformed);
|
||||
|
||||
if (type == simdjson::ondemand::json_type::object || type == simdjson::ondemand::json_type::array)
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
{
|
||||
"type": "git",
|
||||
"url": "https://github.com/simdjson/simdjson.git",
|
||||
"tag": "v3.12.2"
|
||||
"tag": "v4.2.4"
|
||||
}
|
||||
],
|
||||
"config-opts": [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"builtin-baseline": "4f95fba7a7d1101bb8acdeb51e4609686449701e",
|
||||
"builtin-baseline": "2fa7118fb2ce0c27ab73e08ab1991f4cb67af880",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "angle",
|
||||
@@ -232,6 +232,10 @@
|
||||
"name": "curl",
|
||||
"version": "8.16.0#0"
|
||||
},
|
||||
{
|
||||
"name": "dav1d",
|
||||
"version": "1.5.1#0"
|
||||
},
|
||||
{
|
||||
"name": "dbus",
|
||||
"version": "1.16.2#2"
|
||||
@@ -310,7 +314,7 @@
|
||||
},
|
||||
{
|
||||
"name": "simdjson",
|
||||
"version": "3.13.0#0"
|
||||
"version": "4.2.4#0"
|
||||
},
|
||||
{
|
||||
"name": "simdutf",
|
||||
|
||||
Reference in New Issue
Block a user