Remove duplicate shebang filtering

This commit is contained in:
Scott Taylor 2010-03-18 02:59:01 -04:00 committed by Ryan Dahl
parent df8164c1c3
commit 39f0ef9d4a

View File

@ -728,9 +728,6 @@ Module.prototype._compile = function (content, filename) {
Module.prototype._loadScriptSync = function (filename) {
var content = requireNative('fs').readFileSync(filename);
// remove shebang
content = content.replace(/^\#\!.*/, '');
var e = this._compile(content, filename);
if (e) {
throw e;