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/919150ea Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/919150ea Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/919150ea Branch: refs/heads/console_log Commit: 919150ea39fd63fd1178b83f9d2ba6394dedf597 Parents: 6303ff5 Author: Jason Smith (work) <[email protected]> Authored: Fri Feb 1 14:00:00 2013 +0000 Committer: Jason Smith (work) <[email protected]> Committed: Sat Feb 2 14:16:12 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/919150ea/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/919150ea/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;
