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

Bug Fix - filter undefined definitions from the resolver cache #10

Merged
merged 1 commit into from May 27, 2015
Merged

Bug Fix - filter undefined definitions from the resolver cache #10

merged 1 commit into from May 27, 2015

Conversation

arobson
Copy link
Contributor

@arobson arobson commented May 27, 2015

A complex set of race conditions can cause monologue to call 'invokeSubscriber' on an undefined definition from the resolver cache. The test is fairly complex and took me quite some time to find just the right subset of conditions to consistently reproduce the exception so that I could get it into a spec.

For the record, you cannot just put an if clause around the callback, this actually results in the test failing because of a different race condition where not all legitimate subscribers get a callback.

Side note: it would be great if you would add your .esformatter file to this guy (or jscs or whatever) because I had to do a lot of formatting corrections after the fact after disabling esformatter to avoid this being a big PR with lots of weird whitespace changes.

@ifandelse ifandelse merged commit 2c0e20d into postaljs:master May 27, 2015
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.

None yet

2 participants