* Async parse support.
(cursorStartX: number, cursorStartY: number, decodedLength: number, position: number)
| 385 | * Async parse support. |
| 386 | */ |
| 387 | private _preserveStack(cursorStartX: number, cursorStartY: number, decodedLength: number, position: number): void { |
| 388 | this._parseStack.paused = true; |
| 389 | this._parseStack.cursorStartX = cursorStartX; |
| 390 | this._parseStack.cursorStartY = cursorStartY; |
| 391 | this._parseStack.decodedLength = decodedLength; |
| 392 | this._parseStack.position = position; |
| 393 | } |
| 394 | |
| 395 | private _logSlowResolvingAsync(p: Promise<boolean>): void { |
| 396 | // log a limited warning about an async handler taking too long |