couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject [2/2] git commit: Merged pull request #19 from @maghoff with thanks
Date Mon, 30 Apr 2012 21:48:47 GMT
Merged pull request #19 from @maghoff with thanks

Fix failed loading of CommonJS modules that end in a line comment.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/eb0e377e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/eb0e377e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/eb0e377e

Branch: refs/heads/master
Commit: eb0e377e5b40bdc1122aaf54c2f98b8ba7629096
Parents: 6990646
Author: Magnus Hoff <maghoff@gmail.com>
Authored: Sat Apr 28 20:24:43 2012 +0200
Committer: Dave Cottlehuber <dch@apache.org>
Committed: Mon Apr 30 23:43:33 2012 +0200

----------------------------------------------------------------------
 share/server/util.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/eb0e377e/share/server/util.js
----------------------------------------------------------------------
diff --git a/share/server/util.js b/share/server/util.js
index 5b3a63b..b7a62d8 100644
--- a/share/server/util.js
+++ b/share/server/util.js
@@ -87,7 +87,7 @@ var Couch = {
               // create empty exports object before executing the module,
               // stops circular requires from filling the stack
               ddoc._module_cache[newModule.id] = {};
-              var s = "function (module, exports, require) { " + newModule.current + " }";
+              var s = "function (module, exports, require) { " + newModule.current + "\n
}";
               try {
                 var func = sandbox ? evalcx(s, sandbox, newModule.id) : eval(s);
                 func.apply(sandbox, [newModule, newModule.exports, function(name) {


Mime
View raw message