Subj : Re: Changing Object.prototype.toSource to use double-quotes everywhere To : netscape.public.mozilla.jseng From : zwetan Date : Thu May 12 2005 10:14 pm hello, [snip] > > Just switching things so > > var o = {foo: "bar", '$#@%': 42}; > o.toSource() > > results in a string containing {foo:"bar", "$#@%":42} instead of > {foo:"bar", '$#@%':42} is a small change that should be easy to adapt > to, if any existing consumers of toSource output have come to depend on > single quotes being used, if any quoting is used, around property ids. > > Comments? > would it not be more simpler to let users "override" the prototype method at runtime with their own method instead of changing the code-base ? zwetan .