close
The Wayback Machine - https://web.archive.org/web/20201117074454/https://github.com/cujojs/wire/pull/118
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

Fix some of the resolver.reject's to return Error objects #118

Merged
merged 1 commit into from Jul 4, 2013

Conversation

@skiadas
Copy link
Contributor

@skiadas skiadas commented Jul 4, 2013

There are two more rejects that I did not dare touch, as they seemed to return some objects of unspecified form instead of strings. Namely:

Line 36 in lib/ComponentFactory.js

and

Line 72 in lib/lifecycle.js

There are also some uses of "sentinel" as a reject reason in test/node/aop-test.js but since it's in the test it might not matter all that much.

@skiadas
Copy link
Contributor Author

@skiadas skiadas commented Jul 4, 2013

Hm, I forgot to reference #117

@briancavalier
Copy link
Member

@briancavalier briancavalier commented Jul 4, 2013

Looks great, thanks!

briancavalier added a commit that referenced this pull request Jul 4, 2013
Fix some of the resolver.reject's to return Error objects
@briancavalier briancavalier merged commit 006ea8c into cujojs:dev Jul 4, 2013
@briancavalier
Copy link
Member

@briancavalier briancavalier commented Jul 4, 2013

Yeah, the one in ComponentFactory is there for a specific reason and is never exposed to callers, and the sentinel values in the tests are specifically used for testing purposes.

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.