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

Return undefined from SourceCache.getScriptSnapshot for missing files #34

Merged
merged 2 commits into from
Feb 17, 2017

Conversation

davewasmer
Copy link
Contributor

If the file being snapshotted does not exist, then this.readFile(fileName) will return undefined. ScriptSnapshot.fromString() doesn't handle undefined values - the compiler expects that the getScriptSnapshot() method would return undefined instead of a ScriptSnapshot with no text.

@krisselden
Copy link
Collaborator

test please :)

@davewasmer
Copy link
Contributor Author

Test added 👍

@krisselden krisselden merged commit 94a6bb5 into tildeio:master Feb 17, 2017
@chriskrycho chriskrycho mentioned this pull request Jun 20, 2017
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