mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Remove duplicate shebang filtering
This commit is contained in:
1 parent
df8164c1c3
commit
39f0ef9d4a
1 file changed
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user