couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [1/3] git commit: Fix JavaScript CLI test runner.
Date Thu, 20 Oct 2011 16:41:42 GMT
Updated Branches:
  refs/heads/1.1.x ac1f52b32 -> 0d0ed4122
  refs/heads/1.2.x cf94efcba -> 78cbdb93b
  refs/heads/master 94b2156a3 -> 47598c85a


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/47598c85
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/47598c85
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/47598c85

Branch: refs/heads/master
Commit: 47598c85ad0727299c89d28b5697b749b3096a54
Parents: 94b2156
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:41:30 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/47598c85/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 67ba8a1..0685abb 100644
--- a/src/couchdb/priv/couch_js/http.c
+++ b/src/couchdb/priv/couch_js/http.c
@@ -219,7 +219,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