String objects should be ordinary

Jason Orendorff jason.orendorff at gmail.com
Thu Nov 20 12:06:43 PST 2014


String objects are exotic:

http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string-exotic-objects

Suppose we make them ordinary. No change in behvaior: we can make
StringCreate define all the indexed properties on every String object
as it's created, right?

Wouldn't that be better?

It seems like what these sections are trying to achieve is
conceptually simple, and expressible in terms of ordinary properties,
and so the spec should just say that... I could be missing something
though.

-j


More information about the es-discuss mailing list