| Index: third_party/WebKit/Source/devtools/front_end/sources/SourceMapNamesResolver.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourceMapNamesResolver.js b/third_party/WebKit/Source/devtools/front_end/sources/SourceMapNamesResolver.js
|
| index 8768ac0740db7246ab2a2fda1f33365d3eaeff5c..2649b9bf678c2c274869f9f751d43e180bea9bb0 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sources/SourceMapNamesResolver.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sources/SourceMapNamesResolver.js
|
| @@ -31,7 +31,8 @@ Sources.SourceMapNamesResolver._scopeIdentifiers = function(scope) {
|
| var endLocation = scope.endLocation();
|
|
|
| if (scope.type() === Protocol.Debugger.ScopeType.Global || !startLocation || !endLocation ||
|
| - !startLocation.script().sourceMapURL || (startLocation.script() !== endLocation.script()))
|
| + !startLocation.script() || !startLocation.script().sourceMapURL ||
|
| + (startLocation.script() !== endLocation.script()))
|
| return Promise.resolve(/** @type {!Array<!Sources.SourceMapNamesResolver.Identifier>}*/ ([]));
|
|
|
| var script = startLocation.script();
|
| @@ -332,7 +333,8 @@ Sources.SourceMapNamesResolver.resolveScopeInObject = function(scope) {
|
| var endLocation = scope.endLocation();
|
|
|
| if (scope.type() === Protocol.Debugger.ScopeType.Global || !startLocation || !endLocation ||
|
| - !startLocation.script().sourceMapURL || startLocation.script() !== endLocation.script())
|
| + !startLocation.script() || !startLocation.script().sourceMapURL ||
|
| + startLocation.script() !== endLocation.script())
|
| return scope.object();
|
|
|
| return new Sources.SourceMapNamesResolver.RemoteObject(scope);
|
|
|