apache/couchdb — pull request #19 by maghoff (2012-04-28 18:29:42+00:00)
Title: Fix for problem with "require"-ing a js module which ends in a line comment

"require"-ing a js module which ends in a line comment will fail with a mysterious error message, because the line comment will comment out surrounding code added in /share/server/util.js

This patch adds a newline to terminate comments that might appear at the end of module files.

Note that it doesn't help to add a newline to the end of the module file -- couchdb apparently strips that away.