fixed lambda hash collision bug due to function descriptions lacking full parameter information

This commit is contained in:
Vern Paxson 2024-09-11 16:50:32 +02:00 committed by Christian Kreibich
parent adf3648554
commit c0ffaabe2e
2 changed files with 3 additions and 1 deletions

View file

@ -4368,7 +4368,7 @@ ValPtr LambdaExpr::Eval(Frame* f) const {
} }
void LambdaExpr::ExprDescribe(ODesc* d) const { void LambdaExpr::ExprDescribe(ODesc* d) const {
d->Add(expr_name(Tag())); type->Describe(d);
if ( captures && d->IsReadable() ) { if ( captures && d->IsReadable() ) {
d->Add("["); d->Add("[");

View file

@ -672,6 +672,8 @@ std::optional<BrokerData> ScriptFunc::SerializeCaptures() const {
void ScriptFunc::Describe(ODesc* d) const { void ScriptFunc::Describe(ODesc* d) const {
d->Add(GetName().c_str()); d->Add(GetName().c_str());
d->AddSP(":");
type->Describe(d);
d->NL(); d->NL();
d->AddCount(frame_size); d->AddCount(frame_size);