| Index: third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
|
| index 6ff41459509fc63009e271a4d5d4c1617c9b7967..626b08ccbc2180a503ef0301cf26996e011f5c43 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
|
| @@ -345,23 +345,15 @@ SDK.TextSourceMap = class {
|
| /**
|
| * @param {string} sourceURL
|
| * @param {number} lineNumber
|
| - * @return {?SDK.SourceMapEntry}
|
| + * @return {!Array<!SDK.SourceMapEntry>}
|
| */
|
| - firstSourceLineMapping(sourceURL, lineNumber) {
|
| + mappingsForLine(sourceURL, lineNumber) {
|
| var mappings = this._reversedMappings(sourceURL);
|
| - var index = mappings.lowerBound(lineNumber, lineComparator);
|
| - if (index >= mappings.length || mappings[index].sourceLineNumber !== lineNumber)
|
| - return null;
|
| - return mappings[index];
|
| -
|
| - /**
|
| - * @param {number} lineNumber
|
| - * @param {!SDK.SourceMapEntry} mapping
|
| - * @return {number}
|
| - */
|
| - function lineComparator(lineNumber, mapping) {
|
| - return lineNumber - mapping.sourceLineNumber;
|
| - }
|
| + var startIndex = mappings.lowerBound(lineNumber, (lineNumber, mapping) => lineNumber - mapping.sourceLineNumber);
|
| + var endIndex = startIndex;
|
| + while (endIndex < mappings.length && mappings[endIndex].sourceLineNumber === lineNumber)
|
| + ++endIndex;
|
| + return mappings.slice(startIndex, endIndex);
|
| }
|
|
|
| /**
|
|
|