Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid a crash when no raw #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ef4
Copy link
Contributor

@ef4 ef4 commented May 27, 2015

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.

@michaelficarra
Copy link
Owner

We should fix the accidentally missing raw field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants