CoffeeScriptRedux icon indicating copy to clipboard operation
CoffeeScriptRedux copied to clipboard

Avoid a crash when no raw

Open ef4 opened this issue 10 years ago • 1 comments

You can make the compiler crash by trying to compile this file:

argv[2..-1].join()

like this:

/bin/coffee --js --input sample.coffee --source-map-file sample.map

This change defends against the missing expression.raw, since I'm inferring from the surrounding code that raw is not always present on every node.

ef4 avatar May 27 '15 02:05 ef4

We should fix the accidentally missing raw field.

michaelficarra avatar May 29 '15 00:05 michaelficarra