Skip to content

windows.onerror is not working #5901

@atajadod

Description

@atajadod

Version

2.3.3

Reproduction link

https://jsfiddle.net/50wL7mdz/40803/

Steps to reproduce

Create a global error handler, something like this:
window.onerror = function (e) {
alert("Error caught");
};
inside a function of your vue methods, throw an exception. for example
throw "hello!";

What is expected?

alert box to be shown.

What is actually happening?

nothing. it seems Vue silence the error.


I want to use this to have a centralized error handling mechanism for user generated errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions