Spidermonkey allows comma-separated arguments to print. These values are printed with a space inbetween. This: print ("foo", "bar") Produces: foo bar In JavaScriptCore it produces: foo
Created attachment 21565 [details] Proposed patch Here is a patch. It uses indices instead of iterators because our iterators don't have a distance function.
Created attachment 21566 [details] Revised proposed patch Includes some changes suggested by Eric.
Comment on attachment 21566 [details] Revised proposed patch Looks great! (I think I even wrote work-around code in some test cases instead of fixing this once.)
Landed in r34429.