Permalink
Browse files

Fix JavaScript CLI test runner.

Accidentally inverted the logic of a test when patching for newer
versions of SpiderMonkey.
  • Loading branch information...
1 parent ac1f52b commit 0d0ed4122370bf279d26057395bdc508bc4ae9f7 @davisp davisp committed Oct 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 0d0ed41

Please sign in to comment.