ericmckean / traceur-compiler

Automatically exported from code.google.com/p/traceur-compiler
Apache License 2.0
0 stars 0 forks source link

CloneTreeTransformation fails on trees with empty lists #223

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Parse and clone 
  function transcodeMe(){}
2. Check the functionBody: the clone and the original have the same objects.
3.

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

The bug is in transformList for empty lists: we need to return a new array 
because this is another, unexpected, case of a leaf.

Original issue reported on code.google.com by johnjbar...@chromium.org on 23 Mar 2013 at 4:37

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/7802046

Original comment by johnjbar...@chromium.org on 23 Mar 2013 at 4:39