id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	planetversion	pltversion
84	Incorrect rendering of for-in blocks	untyped	dherman	"Hi Dave,

More details and test code coming to you in an email:

for-in statements don't render correctly when they have multiple init vars. Here's an example:

Mirrors code:

{{{
(javascript->pretty-string
 (js (for-in ((var key val) (!object [a 1] [b 2] [c 3]))
       (alert (+ key "": "" val)))))
}}}

Expected output:

{{{
for (var key, val in { a: 1, b: 2, c: 3 })
    alert(key + "": "" + val);
}}}

Actual output:

Expected output:

{{{
for (var key in { a: 1, b: 2, c: 3 })
    alert(key + "": "" + val);
}}}

Cheers,

-- Dave Gurnell"	defect	closed	major		dherman/javascript.plt		javascript mirrors for for-in		(6 4)	4.1.0.4
