Remove duplicate shebang filtering
This commit is contained in:
parent
df8164c1c3
commit
39f0ef9d4a
@ -728,9 +728,6 @@ Module.prototype._compile = function (content, filename) {
|
|||||||
|
|
||||||
Module.prototype._loadScriptSync = function (filename) {
|
Module.prototype._loadScriptSync = function (filename) {
|
||||||
var content = requireNative('fs').readFileSync(filename);
|
var content = requireNative('fs').readFileSync(filename);
|
||||||
// remove shebang
|
|
||||||
content = content.replace(/^\#\!.*/, '');
|
|
||||||
|
|
||||||
var e = this._compile(content, filename);
|
var e = this._compile(content, filename);
|
||||||
if (e) {
|
if (e) {
|
||||||
throw e;
|
throw e;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user