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(config): make sure that Promise config is undefined initially #3440

Merged
merged 1 commit into from
Mar 16, 2018

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Mar 16, 2018

We need to make sure promise is undefined initially because systems like Zones need to have a chance to pick up Promise and patch it, and we're doing a runtime check for configuration anyhow. This makes the runtime check worthwhile and solves the problem with Zones (without needing to reference Zones in anyway)

@coveralls
Copy link

coveralls commented Mar 16, 2018

Coverage Status

Coverage remained the same at 97.544% when pulling 2818b45 on benlesh:fix-promise-config into dd7c9f1 on ReactiveX:master.

describe('config', () => {
it('should have a Promise property that defaults to nothing', () => {
expect('Promise' in config).to.be.true;
expect(config.Promise).to.equal(undefined);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect(config).to.have.property('Promise');
expect(config.Promise).to.be.undefined;

We need to make sure promise is undefined initially because systems like Zones need to have a chance to pick up Promise and patch it, and we're doing a runtime check for configuration anyhow. This makes the runtime check worthwhile and solves the problem with Zones (without needing to reference Zones in anyway)
@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
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.

4 participants