Browse Source

Remove duplicate shebang filtering

v0.7.4-release
Scott Taylor 15 years ago
committed by Ryan Dahl
parent
commit
39f0ef9d4a
  1. 3
      src/node.js

3
src/node.js

@ -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;

Loading…
Cancel
Save