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

Bug: Cannot set property isTrusted of #<Event> [canary] #1077

Closed
mydea opened this issue Aug 2, 2021 · 2 comments
Closed

Bug: Cannot set property isTrusted of #<Event> [canary] #1077

mydea opened this issue Aug 2, 2021 · 2 comments

Comments

@mydea
Copy link
Contributor

mydea commented Aug 2, 2021

On latest canary, I get the error:

 TypeError: Cannot set property isTrusted of #<Event> which has only a getter
                at Function.assign (<anonymous>)
                at assign (http://localhost:7357/assets/vendor.js:38987:19)
                at buildBasicEvent (http://localhost:7357/assets/test-support.js:4449:27)
                at fireEvent (http://localhost:7357/assets/test-support.js:4429:15)
                at http://localhost:7357/assets/test-support.js:4271:30

When running tests.

I would suspect this is because on latest canary assign from @ember/polyfills just re-exports Object.assign and this implementation somehow breaks here:

I will look into it to see if I can find the issue.

@mydea
Copy link
Contributor Author

mydea commented Aug 2, 2021

Ok, this is actually a bug in ember, I opened a PR with a fix here: emberjs/ember.js#19692

@rwjblue
Copy link
Member

rwjblue commented Aug 4, 2021

Thanks @mydea!

@rwjblue rwjblue closed this as completed Aug 4, 2021
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

No branches or pull requests

2 participants