On Wed Dec 7 16:15:42 2022 +0000, Jacek Caban wrote:
I don't like it, it's questionable from design point of view and wastes memory (and yes, there are solutions for handling abstractions without adding vtbl, an example is in Gecko CC). I suppose we may change it later, when integrating with Gecko CC and it's more clear how we want to handle it. Please at least make it clear in the comment that it's a hack, so that we don't base any other design decision based on scope entries being jsdisp.
I'll think about this a bit and see if I can come up with something quick. Otherwise I'll resort to the hack comment. I agree it wastes memory, but I'm more worried about wasting memory in all the other objects since it tends to be way more of them than scopes (affects every object).