Remove duplicate shebang filtering

This commit is contained in:
Scott Taylor authored and Ryan Dahl committed 2010-03-18 07:56:54 -07:00
1 parent df8164c1c3
commit 39f0ef9d4a
1 file changed
-3
-3
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;