Skip to content

Commit eccd633

Browse files
committed
Revert "Reverted a recent change that appears to have affected performance on some projects. This attempts to address #10832. (#10841)"
This reverts commit fe7aaf2.
1 parent b85f7ff commit eccd633

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/pyright-internal/src/parser/tokenizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ export class Tokenizer {
16161616
let isInNamedUnicodeEscape = false;
16171617
const start = this._cs.position;
16181618
let escapedValueLength = 0;
1619-
const getEscapedValue = () => this._cs.getText().slice(start, start + escapedValueLength);
1619+
const getEscapedValue = () => cloneStr(this._cs.getText().slice(start, start + escapedValueLength));
16201620

16211621
while (true) {
16221622
if (this._cs.isEndOfStream()) {

0 commit comments

Comments
 (0)