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 D76FEEFCD for ; Fri, 1 Feb 2013 14:03:14 +0000 (UTC) Received: (qmail 43937 invoked by uid 500); 1 Feb 2013 14:03:14 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 43295 invoked by uid 500); 1 Feb 2013 14:03:13 -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 43248 invoked by uid 99); 1 Feb 2013 14:03:13 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Feb 2013 14:03:13 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id D165C828DE0; Fri, 1 Feb 2013 14:03:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jhs@apache.org To: commits@couchdb.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [3/3] git commit: Webkit-compatible console.log() with Node.js-compatible util.format() Message-Id: <20130201140312.D165C828DE0@tyr.zones.apache.org> Date: Fri, 1 Feb 2013 14:03:12 +0000 (UTC) Updated Branches: refs/heads/console_log [created] bbf0f59f0 Webkit-compatible console.log() with Node.js-compatible util.format() Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/bbf0f59f Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/bbf0f59f Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/bbf0f59f Branch: refs/heads/console_log Commit: bbf0f59f0041018f4d8c64fd8e5f01a0316da921 Parents: 242f6e2 Author: Jason Smith (work) Authored: Fri Feb 1 14:00:00 2013 +0000 Committer: Jason Smith (work) Committed: Fri Feb 1 14:00:00 2013 +0000 ---------------------------------------------------------------------- share/Makefile.am | 2 ++ share/server/loop.js | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/bbf0f59f/share/Makefile.am ---------------------------------------------------------------------- diff --git a/share/Makefile.am b/share/Makefile.am index 31373ee..c88f18d 100644 --- a/share/Makefile.am +++ b/share/Makefile.am @@ -15,9 +15,11 @@ SUBDIRS = doc JS_FILE = server/main.js JS_FILE_COMPONENTS = \ + server/console.js \ server/json2.js \ server/filter.js \ server/mimeparse.js \ + server/nodejs_util.js \ server/render.js \ server/state.js \ server/util.js \ http://git-wip-us.apache.org/repos/asf/couchdb/blob/bbf0f59f/share/server/loop.js ---------------------------------------------------------------------- diff --git a/share/server/loop.js b/share/server/loop.js index fcd016f..3aec8cb 100644 --- a/share/server/loop.js +++ b/share/server/loop.js @@ -20,6 +20,8 @@ function init_sandbox() { sandbox.emit = Views.emit; sandbox.sum = Views.sum; sandbox.log = log; + sandbox.console = Console; + sandbox.util = Util; sandbox.toJSON = Couch.toJSON; sandbox.JSON = JSON; sandbox.provides = Mime.provides;