Skip to content

Commit ce3e87d

Browse files
author
OneDrive Build
committed
Remove intermediary during concatenation
1 parent 34a0217 commit ce3e87d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/compiler/sourcemap.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,10 @@ namespace ts {
265265
}
266266

267267
function serializeMappings(): void {
268-
const segments: string[] = [];
269268
for (let i = 0, len = mappingCharCodes.length; i < len; i += 1024) {
270-
segments.push(String.fromCharCode.apply(undefined, mappingCharCodes.slice(i, i + 1024)));
269+
mappings += String.fromCharCode.apply(undefined, mappingCharCodes.slice(i, i + 1024));
271270
}
272271
mappingCharCodes.length = 0;
273-
mappings += segments.join("");
274272
}
275273

276274
function toJSON(): RawSourceMap {

0 commit comments

Comments
 (0)