diff options
Diffstat (limited to 'js/src/jsapi-tests/testLooselyEqual.cpp')
-rw-r--r-- | js/src/jsapi-tests/testLooselyEqual.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/src/jsapi-tests/testLooselyEqual.cpp b/js/src/jsapi-tests/testLooselyEqual.cpp index 70f5cf8964..5c017497c9 100644 --- a/js/src/jsapi-tests/testLooselyEqual.cpp +++ b/js/src/jsapi-tests/testLooselyEqual.cpp @@ -5,6 +5,8 @@ #include <limits> #include <math.h> +#include "js/Equality.h" // JS::LooselyEqual + #include "jsapi-tests/tests.h" using namespace std; @@ -15,15 +17,15 @@ struct LooseEqualityFixture : public JSAPITest bool leq(JS::HandleValue x, JS::HandleValue y) { bool equal; - CHECK(JS_LooselyEqual(cx, x, y, &equal) && equal); - CHECK(JS_LooselyEqual(cx, y, x, &equal) && equal); + CHECK(JS::LooselyEqual(cx, x, y, &equal) && equal); + CHECK(JS::LooselyEqual(cx, y, x, &equal) && equal); return true; } bool nleq(JS::HandleValue x, JS::HandleValue y) { bool equal; - CHECK(JS_LooselyEqual(cx, x, y, &equal) && !equal); - CHECK(JS_LooselyEqual(cx, y, x, &equal) && !equal); + CHECK(JS::LooselyEqual(cx, x, y, &equal) && !equal); + CHECK(JS::LooselyEqual(cx, y, x, &equal) && !equal); return true; } }; |