Berry provide details when solidifying fails because of upvals (#23809)

* Berry provide details when solidifying fails because of upvals

* more resilient code
This commit is contained in:
s-hadinger 2025-08-21 15:21:04 +02:00 committed by GitHub
parent a879285c57
commit af8700f6d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -426,7 +426,8 @@ static void m_solidify_closure(bvm *vm, bbool str_literal, const bclosure *clo,
const char * func_name = str(pr->name);
if (clo->nupvals > 0) {
logfmt("--> Unsupported upvals in closure <---");
const char *name = str(clo->proto->name);
logfmt("--> Unsupported upvals in closure in '%s' <---", name ? name : "<unkown>");
// be_raise(vm, "internal_error", "Unsupported upvals in closure");
}