libexpr: add set-to-string error frame

this is much more useful than a frame pointing to the set but claiming
it as a function being called. if the function is actually at fault we
will now point to its attribute, although the position may be slightly
wrong if __toString was defined from set updates or builtin functions.

Change-Id: Ib3eb237a276d94426d9c6fc0e26eea72382d34a2
This commit is contained in:
eldritch horrors
2025-04-27 11:01:22 +00:00
parent 9d761ed5c1
commit eb0280f715
4 changed files with 84 additions and 4 deletions
@@ -0,0 +1 @@
toString { __toString = 1; }