()
| 455 | }) |
| 456 | |
| 457 | async function doAsyncWork() { |
| 458 | // should still have instance |
| 459 | inBandInstance = getCurrentInstance() |
| 460 | await Promise.resolve() |
| 461 | // should not leak instance |
| 462 | outOfBandInstance = getCurrentInstance() |
| 463 | } |
| 464 | |
| 465 | const Comp = defineComponent({ |
| 466 | async setup() { |
no test coverage detected