mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-30 04:16:48 -05:00
Optimize sourcemap application more (#25425)
* Optimize sourcemap application more * Remove test-only memory hog sourceMapDecodedMappings field * Update for style, remove unused function that triggers warnings in node 10 * Avoid all raw buffer constructor calls * Small TDZ fix
This commit is contained in:
@@ -190,7 +190,7 @@ namespace ts.sourcemaps {
|
||||
};
|
||||
}
|
||||
|
||||
export function calculateDecodedMappings<T>(map: SourceMapData, processPosition: (position: RawSourceMapPosition) => T, host?: { log?(s: string): void }): T[] {
|
||||
function calculateDecodedMappings<T>(map: SourceMapData, processPosition: (position: RawSourceMapPosition) => T, host?: { log?(s: string): void }): T[] {
|
||||
const decoder = decodeMappings(map);
|
||||
const positions = arrayFrom(decoder, processPosition);
|
||||
if (decoder.error) {
|
||||
|
||||
Reference in New Issue
Block a user