diff options
author | Paul Joseph Davis <davisp@apache.org> | 2011-10-20 11:40:25 -0500 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2011-10-20 11:40:25 -0500 |
commit | 0d0ed4122370bf279d26057395bdc508bc4ae9f7 (patch) | |
tree | 6d349f7553cd1208b9901c2dfe90c07fd191318f | |
parent | ac1f52b32b39e8adc2b7d74040da0e0db4894d2a (diff) |
Fix JavaScript CLI test runner.
Accidentally inverted the logic of a test when patching for newer
versions of SpiderMonkey.
-rw-r--r-- | src/couchdb/priv/couch_js/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/priv/couch_js/http.c b/src/couchdb/priv/couch_js/http.c index 7630c456..052865aa 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; } |