Whenever it is cheap and non-invasive, SunSpider tests should validate their results...
[WebKit-https.git] / PerformanceTests / SunSpider / resources / TEMPLATE.html
index 3dc3f2f4853551514372ed60c89ae610c58695df..ba6a6eb1b0e1e1bd828f0a838e51811233a062ba 100644 (file)
@@ -44,6 +44,11 @@ function record(time) {
     }
 }
 
+window.onerror = function(e) {
+    console.log("@NAME@ failed with error: " + e);
+    record(0 / 0);
+}
+
 var _sunSpiderStartDate = new Date();
 
 @SCRIPT@