Fixed a version number string in SunSpider 1.0.2
[WebKit-https.git] / PerformanceTests / SunSpider / resources / sunspider-standalone-driver.js
index e6686f1f63856b1c45e541c3d9fca392e4c4e77d..74f0e04087ec9c6186abd3a88029f49339498e14 100644 (file)
@@ -47,11 +47,19 @@ for (var j = 0; j < tests.length; j++) {
             // higher-precision `run' timer, because `run' uses a fresh
             // global environment, so we fall back to `load'.
             var startTime = new Date;
-            load(testName);
-            times[j] = new Date() - startTime;
+            try {
+                load(testName);
+                times[j] = new Date() - startTime;
+            } catch (e) {
+                times[j] = 0 / 0;
+            }
         } catch (e) {
             // No test data, just use `run'.
-            times[j] = run(testName);
+            try {
+                times[j] = run(testName);
+            } catch (e) {
+                times[j] = 0 / 0;
+            }
         }
     }
     gc();