merging Tim's filename branch.

This commit is contained in:
Jeremy Ashkenas 2010-09-22 22:44:42 -04:00
parent c4a3e170e2
commit 19dfe4b01d
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@
if (root.moduleCache) {
root.moduleCache = {};
}
return root._compile(exports.compile(code, options), root.filename);
return path.extname(root.filename) !== '.coffee' || require.extensions ? root._compile(exports.compile(code, options), root.filename) : root._compile(code, root.filename);
};
exports.eval = function(code, options) {
var __dirname, __filename;