Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Fix JavaScript CLI test runner.
Browse files Browse the repository at this point in the history
Accidentally inverted the logic of a test when patching for newer
versions of SpiderMonkey.
  • Loading branch information
davisp committed Oct 20, 2011
1 parent ac1f52b commit 0d0ed41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/couchdb/priv/couch_js/http.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0d0ed41

Please sign in to comment.