Approach of new Object methods in ES5

Tom Van Cutsem tomvc at
Fri Apr 16 13:30:41 PDT 2010

> The static methods are to avoid "breaking the web" by injecting even
>> non-enumerable names into every object -- including the global object --
>> via Object.prototype. Such injection can easily break user-controlled
>> "object detection" done on colliding names.
> I appreciate that. "Not breaking the web" seems to be the excuse that
> everyone trots out when they introduce a kludge. I'm sure the changes were
> necessary and I'll bow to my betters on this one.

I don't see the ES5 Object API as a kludge at all.

More information about the es-discuss mailing list