fix: reduce SLICE_STACK_SIZE to 50k (#2784)

This commit is contained in:
Niklas von Hertzen 2021-12-31 15:30:18 +08:00 committed by GitHub
parent 04787ee88a
commit 1cc853a318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ export class Tokenizer {
}
private consumeStringSlice(count: number): string {
const SLICE_STACK_SIZE = 60000;
const SLICE_STACK_SIZE = 50000;
let value = '';
while (count > 0) {
const amount = Math.min(SLICE_STACK_SIZE, count);