Ticket #84 (closed defect)
Incorrect rendering of for-in blocks
Reported by: | untyped | Owned by: | dherman |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | dherman/javascript.plt | Keywords: | javascript mirrors for for-in |
Cc: | Version: | (6 4) | |
Racket Version: | 4.1.0.4 |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.