| Index: third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
|
| index b608b13e512f2c56cb3167c4245f4025b4e71bb6..d0a6a5d50ad71aa0c6ed0c87758564025f7d2386 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
|
| @@ -325,19 +325,10 @@ WebInspector.ResourceScriptFile.prototype = {
|
| var workingCopy = this._uiSourceCode.workingCopy();
|
|
|
| // Match ignoring sourceURL.
|
| - if (workingCopy.startsWith(this._scriptSource.trimRight())) {
|
| - var suffix = this._uiSourceCode.workingCopy().substr(this._scriptSource.length);
|
| - return !!suffix.length && !suffix.match(WebInspector.Script.sourceURLRegex);
|
| - }
|
| -
|
| - // Match ignoring Node wrapper.
|
| - var nodePrefix = "(function (exports, require, module, __filename, __dirname) { \n";
|
| - var nodeSuffix = "\n});";
|
| - if (workingCopy.startsWith("#!/usr/bin/env node\n"))
|
| - workingCopy = workingCopy.substring("#!/usr/bin/env node\n".length);
|
| - if (this._scriptSource === nodePrefix + workingCopy + nodeSuffix)
|
| - return false;
|
| - return true;
|
| + if (!workingCopy.startsWith(this._scriptSource.trimRight()))
|
| + return true;
|
| + var suffix = this._uiSourceCode.workingCopy().substr(this._scriptSource.length);
|
| + return !!suffix.length && !suffix.match(WebInspector.Script.sourceURLRegex);
|
| },
|
|
|
| /**
|
|
|