Class extending function/generator/class literals

Isiah Meadows impinball at gmail.com
Sun Aug 24 12:22:09 PDT 2014


I know this wouldn't be a common use case, but might come into play with
minifiers later on. Would any of the following be potentially valid in ES6?

    class Foo extends function() {} { /* class body */ }
    class Foo extends function* (bar) { yield bar } { /* class body */ }
    class Foo extends class { /* super body */ } { /* class body */ }

This question came from the fact that classes can be stored in variables
like so:

    let Foo = class Bar { /* ... */ }

-- 
Isiah Meadows
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140824/a3763a5b/attachment.html>


More information about the es-discuss mailing list