support `{ toString(): string }` and `{ toHTML(): string }` as reactive outputs
Open
glimmervm
- Dominant language
- TypeScript
- Stars
- 22.6k
- Forks
- 4.2k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 15
Description
I don't see supporting either of these things as breaking, as today, you got `[object Object]` or similar when rendering "things with methods".
What we need to make sure though, `toString()`, and `toHTML()` are reactive.
Could replace: https://github.com/glimmerjs/glimmer-vm/blob/f03632077d98910de7ae3f7c22ebed98cb4f909a/packages/%40glimmer/vm/lib/opcodes.ts#L149-L153
Contributor guide
Assessment
This issue has not been assessed yet.