couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [3/3] git commit: Fix JavaScript CLI test runner.
Date Thu, 20 Oct 2011 16:41:42 GMT
Fix JavaScript CLI test runner.

Accidentally inverted the logic of a test when patching for newer
versions of SpiderMonkey.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/0d0ed412
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/0d0ed412
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/0d0ed412

Branch: refs/heads/1.1.x
Commit: 0d0ed4122370bf279d26057395bdc508bc4ae9f7
Parents: ac1f52b
Author: Paul Joseph Davis <davisp@apache.org>
Authored: Thu Oct 20 11:40:25 2011 -0500
Committer: Paul Joseph Davis <davisp@apache.org>
Committed: Thu Oct 20 11:40:25 2011 -0500

----------------------------------------------------------------------
 src/couchdb/priv/couch_js/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/0d0ed412/src/couchdb/priv/couch_js/http.c
----------------------------------------------------------------------
diff --git a/src/couchdb/priv/couch_js/http.c b/src/couchdb/priv/couch_js/http.c
index 7630c45..052865a 100644
--- a/src/couchdb/priv/couch_js/http.c
+++ b/src/couchdb/priv/couch_js/http.c
@@ -164,7 +164,7 @@ http_open(JSContext* cx, JSObject* req, jsval mth, jsval url, jsval snc)
         goto done;
     }
     
-    if(JSVAL_IS_BOOLEAN(snc) && !JSVAL_TO_BOOLEAN(snc)) {
+    if(JSVAL_IS_BOOLEAN(snc) && JSVAL_TO_BOOLEAN(snc)) {
         JS_ReportError(cx, "Synchronous flag must be false.");
         goto done;
     }


Mime
View raw message