speedup utf32ToString conversion

This commit is contained in:
Jörg Breitbart
2019-01-03 02:55:11 +01:00
parent 1fb1f556b1
commit 27b91f6b00
2 changed files with 10 additions and 12 deletions
+1 -1
View File
@@ -567,7 +567,7 @@ export class EscapeSequenceParser extends Disposable implements IEscapeSequenceP
if (j >= length
|| (code = data[j]) < 0x20
|| (code > 0x7f && code <= 0x9f)) {
osc += utf32ToString(data.subarray(i, j));
osc += utf32ToString(data, i, j);
i = j - 1;
break;
}