archives

« Bugzilla Issues Index

#3804 — Implement NewTarget and subclassing semantics


See latest ES6




Constructor informative example:


The Map constructor is designed to be subclassable. It may be used as the value in an extends clause of a class definition. Subclass constructors that intend to inherit the specified Map behaviour must include a super call to the Map constructor to create and initialize the subclass instance with the internal state necessary to support the Map.prototype built-in methods.


And...

https://people.mozilla.org/~jorendorff/es6-draft.html#sec-map-iterable


Fixed