You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2011/10/26 20:05:32 UTC

[4/50] git commit: Fix JavaScript CLI test runner.

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/1319-large-headers-are-corrupted
Commit: 47598c85ad0727299c89d28b5697b749b3096a54
Parents: 94b2156
Author: Paul Joseph Davis <da...@apache.org>
Authored: Thu Oct 20 11:40:25 2011 -0500
Committer: Paul Joseph Davis <da...@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;
     }