mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35: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)
|
||||
|
||||
Reference in New Issue
Block a user