Have a CLI version of JetStream 2 to run on watchOS
[WebKit-https.git] / PerformanceTests / JetStream2 / RexBench / UniPoker / benchmark.js
index f87b06e..cbcbe0b 100644 (file)
@@ -43,8 +43,9 @@ class Benchmark {
     {
         if (this._players.length != playerExpectations.length)
             throw "Expect " + playerExpectations.length + ", but actually have " + this._players.length;
-
-        for (let playerIdx = 0; playerIdx < playerExpectations.length; playerIdx++)
-            playerExpectations[playerIdx].validate(this._players[playerIdx]);
+        if (isInBrowser) {
+            for (let playerIdx = 0; playerIdx < playerExpectations.length; playerIdx++)
+                playerExpectations[playerIdx].validate(this._players[playerIdx]);
+        }
     }
 }