rainforestapp / decaf

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

Try to Expression #17

Closed also closed 8 years ago

also commented 8 years ago

I expected decaf to fall back to the CoffeeScript compiler here:

> decaf.compile('x = try y()');
Error: can't convert node of type: Try to Expression - not recognized

From the CoffeeScript compiler:

x = (function() {
  try {
    return y();
  } catch (undefined) {}
})();
juliankrispel commented 8 years ago

thanks I forgot about that one

juliankrispel commented 8 years ago

actually I am dealing with try catch blocks but not with try expressions it seems. Will add that shortly and update you.

juliankrispel commented 8 years ago

@also sorted. I also (no pun intended) published a new version on npm, thanks for reporting the issue and let me know if you find more :)