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

error thrown within an event handler is undefined #11465

Closed
Gregoor opened this issue Jul 31, 2024 · 0 comments
Closed

error thrown within an event handler is undefined #11465

Gregoor opened this issue Jul 31, 2024 · 0 comments

Comments

@Gregoor
Copy link

Gregoor commented Jul 31, 2024

Vue version

3.4.35

Link to minimal reproduction

https://play.vuejs.org/#eNp9UU1vwjAM/StWLi0SKge2CyrsSxy2wzZtO0aaumDaQptEScqHqv73OekKHCZOsf2enefnlj1onewaZDOWWmFK7cCia/SCy7LWyjhoweAaOlgbVUNE1IhLLoWS1kFtc5h7PI6iEZfppB9BzZQ4rHWVOaQMoG0Duet8kv40zikK7kVViu2cs3gE8wW0HgRw5jiElBRG7UHiHpbGKBNHttF3/jMPdiAyJwqI0WOjc1cvLFSTGq3Ncvzr8E/H2aLAYzrpdZDAdHKhlo2Zs7TgusyTjVWSvAmDOROq1mWF5k27kgzgbDZ8yVlWVWr/EmrONDge6qJAsf2nvrEHX+Ps3aBFs0POTpjLTI6uh5efr3ig+ATWatVUxL4CfqBVVeM19rTHRq5I9gUvqH0OFy5l/mWXB4fSDkt5ocGowOeMrv50ZfWz3Gly0xssO3Lxe4fGzyQDCUimt6z7BWmEyoA=

Steps to reproduce

  1. use an inline event handler, e.g. `@click="() => { }"
  2. throw an error within it (could also mean within a function you are calling)
  3. catch it, still within the event handler, and observe the error object being undefined

What is expected?

The error that has been thrown

What is actually happening?

The error is undefined

System Info

No response

Any additional comments?

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant