Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7316D7280 for ; Thu, 20 Oct 2011 16:42:04 +0000 (UTC) Received: (qmail 48251 invoked by uid 500); 20 Oct 2011 16:42:04 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 48157 invoked by uid 500); 20 Oct 2011 16:42:04 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 48099 invoked by uid 99); 20 Oct 2011 16:42:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2011 16:42:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.114] (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2011 16:42:02 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id BB6FA53A61; Thu, 20 Oct 2011 16:41:42 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davisp@apache.org To: commits@couchdb.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [3/3] git commit: Fix JavaScript CLI test runner. Message-Id: <20111020164142.BB6FA53A61@tyr.zones.apache.org> Date: Thu, 20 Oct 2011 16:41:42 +0000 (UTC) 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/0d0ed412 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/0d0ed412 Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/0d0ed412 Branch: refs/heads/1.1.x Commit: 0d0ed4122370bf279d26057395bdc508bc4ae9f7 Parents: ac1f52b Author: Paul Joseph Davis Authored: Thu Oct 20 11:40:25 2011 -0500 Committer: Paul Joseph Davis Committed: Thu Oct 20 11:40:25 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/0d0ed412/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 7630c45..052865a 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; }