Index: third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js |
index b6ab08ac745cd0998dd7e1ad1ea4128e44ad59ed..93eb82fe0b24192ae68aacc1c79936e6244674be 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js |
@@ -220,9 +220,10 @@ SDK.SourceMapManager = class extends SDK.SDKObject { |
return; |
} |
this._sourceMapURLToClients.remove(sourceMapURL, client); |
+ var sourceMap = this._sourceMapByURL.get(sourceMapURL); |
if (!this._sourceMapURLToClients.has(sourceMapURL)) |
this._sourceMapByURL.delete(sourceMapURL); |
- this.dispatchEventToListeners(SDK.SourceMapManager.Events.SourceMapDetached, client); |
+ this.dispatchEventToListeners(SDK.SourceMapManager.Events.SourceMapDetached, {client, sourceMap}); |
lushnikov
2017/03/28 01:39:32
used "shorthand property names" here :)
dgozman
2017/03/28 23:37:37
Scary! Maybe trial this feature in tests first?
lushnikov
2017/03/29 01:27:24
Done.
|
} |
_sourceMapLoadedForTest() { |