From 02f54710ad518f21c3702c19579bedbd5574d514 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Tue, 24 Jul 2018 18:46:00 -0700 Subject: [PATCH] Fix error reporting on Safari. --- test/unit/strict-template-policy.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/strict-template-policy.html b/test/unit/strict-template-policy.html index 982b3b97ff..4807c1762a 100644 --- a/test/unit/strict-template-policy.html +++ b/test/unit/strict-template-policy.html @@ -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; };