Skip to content

Commit

Permalink
Fix error reporting on Safari.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Jul 25, 2018
1 parent 7c147a7 commit 02f5471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/strict-template-policy.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
window.onerror = window.top.onerror = window.uncaughtErrorFilter =
window.top.uncaughtErrorFilter = function(err) {
if (!uncaughtError) {
uncaughtError = err instanceof Error ? err : new Error(err.message);
uncaughtError = err instanceof Error ? err : new Error(err.message || err);
}
return true;
};
Expand Down

0 comments on commit 02f5471

Please sign in to comment.