Skip to content

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

Open
kiwiupover wants to merge 6 commits intoemberjs:masterfrom
kiwiupover:assert-did-insert-receives-function
Open

Adding better errors when passing null or undefined to modifiers#37
kiwiupover wants to merge 6 commits intoemberjs:masterfrom
kiwiupover:assert-did-insert-receives-function

Conversation

@kiwiupover
Copy link
Copy Markdown
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
Copy Markdown

@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
Copy Markdown
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