Math.TAU

A Matías Quezada amatiasq at gmail.com
Thu Jul 3 07:55:03 PDT 2014


http://people.mozilla.org/~jorendorff/es6-draft.html#sec-runtime-semantics-module-objects

> A Module object is an exotic object whose own properties corresponding
corresponding to the ExportedBindings of the module identifed by the
ModuleImport FromClause. Each property name is the StringValue of the
corresponding exported binding. These are the only properties of an Module
object. Each one is a read-only property with attributes {[[Configurable]]:
false, [[Enumerable]]: true}. **Module objects are not extensible.**

Maybe this is still under discussion, below you can see

> Needs to decide whether a module object is an ordinary or an exotic
object. Whether properties are accessor or defined via [[Get]], etc.

But for now the draft says they're not extensible.

---
A. Matías Quezada
Senior Javascript Developer
amatiasq at gmail.com



2014-07-03 16:15 GMT+02:00 C. Scott Ananian <ecmascript at cscott.net>:

>
> On Jul 3, 2014 9:15 AM, "A Matías Quezada" <amatiasq at gmail.com> wrote:
> > PS: Also in ES6 modules it will be not possible to extend module Math.
>
> Really? That will be quite problematic when it comes time to write
> es7-shim.
>   --scott
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140703/b117d81c/attachment.html>


More information about the es-discuss mailing list