Fix exposing the error
Using a promise for the setTimeout call is broken in this case, as the error would again be thrown in a promise operation, and so not exposed
This commit is contained in:
parent
bdd64b7141
commit
4875dd17c4
@ -119,9 +119,9 @@ function tick() {
|
||||
//
|
||||
// - __error__ - Error/exception object to be re-thrown to the browser.
|
||||
function exposeError(error) {
|
||||
tick().then(() => {
|
||||
setTimeout(() => {
|
||||
throw error;
|
||||
});
|
||||
}, 0);
|
||||
}
|
||||
|
||||
export default {
|
||||
|
Loading…
Reference in New Issue
Block a user