2 ms·
"given that there's no native JavaScript way refer to things down the prototype chain instead of up?" For a method "xyz", look for whether there's currently an
by jerf 14y ago
"given that there's no native JavaScript way refer to things down the prototype chain instead of up?"
For a method "xyz", look for whether there's currently an "xyz_inner" and call that if so. It's easy enough for the Dart compiler to do the resulting paperwork; it's what compilers do. (Yes, it is yet more complicated a bit to keep going down to a second layer of inheritance but it seems like it could be done, just more paperwork. And of course the symbol names are arbitrary, it need not be "inner".)