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

Adding better errors when passing null or undefined to modifiers #37

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

kiwiupover
Copy link
Contributor

@kiwiupover kiwiupover commented Aug 2, 2021

  • Asserts an error then the function passed to did-insert, did-update and will-destroy is not a function.

  • Today the error is fn must be a function fn has another meaning in emberland.

Upgrading ember-resolver fixes the test failures of ember-release, ember-beta, and ember-canary.

Canary is failing due to using Ember.
I have an follow up PR that updates ember and ember-cli that will fix this issue.

I have added allow failure for ember-canary due to the failure above.

Here is this same PR running on my github so we can run the tests all the tests are passing except the ember-canary which we know is failing.

kiwiupover#4

     - Asserts an error then the function passed to
     `did-insert`, `did-update` and `will-destroy`
     is not a function.

     - Today the error is `fn must be a function`;
     `fn` has another meaning in emberland.
Copy link

@mminkoff mminkoff left a comment

Choose a reason for hiding this comment

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

So nice!

   This PR fixed an issue that causes and error to be thrown twice
   for ember versions <= 3.15
   glimmerjs/glimmer-vm#1073
   I have a PR open to upgrade ember which will allow us to test canary builds
@RobbieTheWagner
Copy link
Member

@kiwiupover thanks for the PR! Would you mind rebasing to latest master please?

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.

3 participants