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:49:34 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/b7958ab4
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/b7958ab4
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/b7958ab4

Branch: refs/heads/1.2.x
Commit: b7958ab46ad1576b6e796b41072553d5f10119a6
Parents: 81dd115
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:45:16 2012 +0200

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/b7958ab4/share/server/util.js
----------------------------------------------------------------------
diff --git a/share/server/util.js b/share/server/util.js
index fca8856..3d40f0f 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) : eval(s);
                 func.apply(sandbox, [newModule, newModule.exports, function(name) {


Mime
View raw message