(sourceMap)
| 697 | } |
| 698 | |
| 699 | loadSourceMap(sourceMap) { |
| 700 | if (!sourceMap) return null; |
| 701 | // Overwrite the load function to load scripts synchronously. |
| 702 | WebInspector.SourceMap.load = (sourceMapURL) => { |
| 703 | const content = d8.file.read(sourceMapURL); |
| 704 | const sourceMapObject = JSON.parse(content); |
| 705 | return new SourceMap(sourceMapURL, sourceMapObject); |
| 706 | }; |
| 707 | return WebInspector.SourceMap.load(sourceMap); |
| 708 | } |
| 709 | |
| 710 | static VmStates = { |
| 711 | JS: 0, |
no test coverage detected