Jacek Caban (@jacek) commented about dlls/jscript/engine.h:
}
typedef struct _scope_chain_t {
- LONG ref;
- jsdisp_t dispex; /* object to hold ref for the garbage collector */
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.