mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix: reduce SLICE_STACK_SIZE to 50k (#2784)
This commit is contained in:
parent
04787ee88a
commit
1cc853a318
@ -657,7 +657,7 @@ export class Tokenizer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private consumeStringSlice(count: number): string {
|
private consumeStringSlice(count: number): string {
|
||||||
const SLICE_STACK_SIZE = 60000;
|
const SLICE_STACK_SIZE = 50000;
|
||||||
let value = '';
|
let value = '';
|
||||||
while (count > 0) {
|
while (count > 0) {
|
||||||
const amount = Math.min(SLICE_STACK_SIZE, count);
|
const amount = Math.min(SLICE_STACK_SIZE, count);
|
||||||
|
Loading…
Reference in New Issue
Block a user