Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Ensure caching works properly for repeated calls with the same dir. #29

Merged
merged 1 commit into from
Jan 5, 2016

Conversation

eventualbuddha
Copy link
Contributor

preflightCheck tries to cache its results, but it did so in a way that is incorrect. It works fine with a cache miss, but a cache hit results in resetting the cache to undefined.

This is the ultimate cause of decaffeinate/decaffeinate#106.

`preflightCheck` tries to cache its results, but it did so in a way that is incorrect. It works fine with a cache miss, but a cache hit results in resetting the cache to `undefined`.
Rich-Harris added a commit that referenced this pull request Jan 5, 2016
Ensure caching works properly for repeated calls with the same `dir`.
@Rich-Harris Rich-Harris merged commit 2771312 into master Jan 5, 2016
@Rich-Harris Rich-Harris deleted the fix-preflight-check-caching branch January 5, 2016 16:24
@Rich-Harris
Copy link
Contributor

nice, thanks – I wonder if this is the cause of #26 as well. Will push out a new release so we can find out

@eventualbuddha
Copy link
Contributor Author

@Rich-Harris looks like it fixed the issue for me both in decaffeinate and esnext. Thanks for the release!

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

Successfully merging this pull request may close these issues.

2 participants