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:
Ali Mohammad Pur
2026-01-16 01:48:48 +01:00
committed by Jelle Raaijmakers
parent f77b72040e
commit ea65181444
Notes: github-actions[bot] 2026-01-16 12:12:22 +00:00
3 changed files with 14 additions and 4 deletions

View File

@@ -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)