You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2011/10/20 18:41:42 UTC
[2/3] 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/78cbdb93
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/78cbdb93
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/78cbdb93
Branch: refs/heads/1.2.x
Commit: 78cbdb93b7ba0bb5ecce69e08d2137c8703cc59d
Parents: cf94efc
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:16 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/78cbdb93/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;
}