> If you want to stratify toString/valueOf in general and for all objects, I 
> would very much support that.

I'm not sure I understand what you mean. Do you mean something like:

    js> var obj = Object.create(null, {});
    js> String(obj)
    TypeError: can't convert obj to string
    js> Object.setMetaToStringBehavior(obj, function() { return "hello world" 
});
    js> String(obj)
    "hello world"

for normal objects?

Dave

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to