Unreviewed, dump more information when math-pow-stable-results.js failed
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 May 2016 13:43:29 +0000 (13:43 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 May 2016 13:43:29 +0000 (13:43 +0000)
https://bugs.webkit.org/show_bug.cgi?id=157168

* tests/stress/math-pow-stable-results.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201014 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/tests/stress/math-pow-stable-results.js

index 715a2aa..bc52861 100644 (file)
@@ -1,3 +1,10 @@
+2016-05-17  Yusuke Suzuki  <utatane.tea@gmail.com>
+
+        Unreviewed, dump more information when math-pow-stable-results.js failed
+        https://bugs.webkit.org/show_bug.cgi?id=157168
+
+        * tests/stress/math-pow-stable-results.js:
+
 2016-05-16  Saam barati  <sbarati@apple.com>
 
         ShadowChicken crashes when reading a scope from the frame during a stack overflow exception
index a6a701b..d2a1de2 100644 (file)
@@ -71,15 +71,15 @@ for (let tierUpLoopCounter = 0; tierUpLoopCounter < 1e3; ++tierUpLoopCounter) {
             let expectedResult = expectedResults[i][j];
             let result = opaquePow(base, exponent);
             if (!isIdentical(result, expectedResult))
-                throw "Failed opaquePow with base = " + base + " exponent = " + exponent + " expected (" + expectedResult + ") got (" + result + ")";
+                throw `Failed opaquePow with base = ${base} exponent = ${exponent} expected (${expectedResult}) got (${result})`;
 
             result = constantBaseFunctions[i](exponent);
             if (!isIdentical(result, expectedResult))
-                throw "Failed constantBaseFunctions with base = " + base + " exponent = " + exponent;
+                throw `Failed constantBaseFunctions with base = ${base} exponent = ${exponent} expected (${expectedResult}) got (${result})`;
 
             result = constantExponentFunctions[j](base);
             if (!isIdentical(result, expectedResult))
-                throw "Failed constantExponentFunctions with base = " + base + " exponent = " + exponent;
+                throw `Failed constantExponentFunctions with base = ${base} exponent = ${exponent} expected (${expectedResult}) got (${result})`;
         }
     }
 }