rainforestapp / decaf

Coffeescript to ES.next transpiler. Now maintained over at
https://github.com/juliankrispel/decaf
MIT License
106 stars 10 forks source link

Fix slices by cheating with recast #154

Closed GoodForOneFare closed 8 years ago

GoodForOneFare commented 8 years ago

Fixes:

I started out by trying to fix this without leaning on recast, but the code gets ugly once you have to consider different node types for positive/negative end bounds. I gave up and used recast once the variable-end-bound-should-never-be-0 thing cropped up :/

lemonmade commented 8 years ago

Ping @juliankrispel can you take a look at this PR and the others Gord put up?

juliankrispel commented 8 years ago

@lemonmade @GoodForOneFare sry guys, my notifications here must be screwed up