Skip to content

Conversation

chancancode
Copy link
Member

These are slightly riskier in that you'd have to take the comment author's word for it, as the proposed code was never execrised or tested in the real world (unlike in #20798, where, if there were no bugs in the branchgin, we should have been running the correct branch all along and for a while now).

But I manually audited these spots and to my knowledge they seemed safe.

These are slightly riskier in that you'd have to take the comment
author's word for it, as the proposed code was never execrised or
tested in the real world (unlike in #20798, where, if there were
no bugs in the branchgin, we should have been running the correct
branch all along and for a while now).

But I manually audited these spots and to my knowledge they seemed
safe.
const fallbackRegistry = Application.buildRegistry(namespace);
// TODO: only do this on Ember < 3.13
// @ts-ignore: this is private API.
fallbackRegistry.register('component-lookup:main', Ember.ComponentLookup);
Copy link
Member Author

Choose a reason for hiding this comment

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

This hasn't done anything for a long time now, and in any case this would be re-registering the same thing that was already there.

//
// import { registerWaiter } from '@ember/test';
Ember.Test.registerWaiter(this, this.isReady);
registerWaiter(this, this.isReady);
Copy link
Member Author

Choose a reason for hiding this comment

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

There are other places in the codebase that already uses this pattern

this._super.apply(this, arguments);
// must be called with `Ember.Test` as context for Ember < 2.8
Ember.Test.unregisterWaiter(this, this.isReady);
unregisterWaiter(this, this.isReady);
Copy link
Member Author

Choose a reason for hiding this comment

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

There are other places in the codebase that already uses this pattern

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