JavaScript terminology: non-function-valued property

Axel Rauschmayer axel at
Fri Jul 22 16:13:05 PDT 2011

In strict-mode, "this" isn’t boxed in, say, String.prototype.* methods. But I don’t know how/whether that reflects the spec.

On Jul 23, 2011, at 1:07 , Jeff Walden wrote:

> On 07/22/2011 03:16 PM, Mike Shaver wrote:
>> Which primitives have own properties?  I thought even "str".length conceptually came from the prototype.
> Spec-wise, it comes from the boxed String object created when you attempt to look up a property on a primitive string.  It's the same for "str"[0] and so on.  (Serious implementations probably wouldn't actually box up the primitive in either case, of course, and would have fast-path logic.)
> Jeff

Dr. Axel Rauschmayer

axel at


More information about the es-discuss mailing list