Reflect.getOwnPropertySymbols?

Keith Cirkel esdiscuss at keithcirkel.co.uk
Sun Mar 15 21:48:27 UTC 2015


It seems like the intention of the Reflect API was to create a standard
object were all reflection operations could reside.

Now that we have modules, a “@reflect” module is a more natural place for
> many of the reflection methods previously defined on Object. For
> backwards-compatibility purposes, it is unlikely that the static methods on
> Object will disappear. However, new methods should likely be added to the
> “@reflect” module rather than to the Object constructor.


(From http://wiki.ecmascript.org/doku.php?id=harmony:reflect_api)

But ES6 adds [Object.getOwnPropertySymbols][1], but has no Reflect api to
match. Is this a mistake or intentional?

On the same subject - the original Reflect proposal seemed to add the
complete set of Object statics, including .freeze/isFrozen, .seal/isSealed,
which seem to be missing from the RC. Once again, is this intentional? My
google-fu seems to be lacking wrt finding anything about dropping these.

1:
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.getownpropertysymbols
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150315/e14d8818/attachment-0001.html>


More information about the es-discuss mailing list