Loader vs ES6 Classes

John Barton johnjbarton at google.com
Tue Aug 5 09:24:05 PDT 2014

f you read the Loader source carefully you can see that Jason fixed the
Loader to support inheritance. But his fix does not allow classes to
inherit the platform's loading behavior.  That behavior is given in options
properties passed to instances. By defining the system loader as an
instance of a SystemLoader extending Loader, the platform behavior would be
extendable and the Loader would be ES6 not merely class-friendly.

On Mon, Aug 4, 2014 at 6:40 PM, Kevin Smith <zenparsing at gmail.com> wrote:

>> On Mon, Aug 4, 2014 at 6:33 PM, Kevin Smith <zenparsing at gmail.com> wrote:
>>> If I understand correctly, John was wanting to use a state-carrying
>>> options as the options argument when specifying hook overrides.
>> What part of this has anything to do with ES6 classes?
> As far as I can tell, nothing.  Looks like good work was done to make
> Loader class-friendly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140805/961b138e/attachment.html>

More information about the es-discuss mailing list