()
| 400 | window.requestAnimationFrame |
| 401 | ) { |
| 402 | const on_frame = () => { |
| 403 | if (this.execution_timer_id != -1) return |
| 404 | |
| 405 | window.requestAnimationFrame(on_frame) |
| 406 | this.onBeforeStep?.() |
| 407 | this.runStep(1, !this.catch_errors) |
| 408 | this.onAfterStep?.() |
| 409 | } |
| 410 | this.execution_timer_id = -1 |
| 411 | on_frame() |
| 412 | } else { |