| 3704 | if (_dispatchQueue->isCurrent()) { |
| 3705 | onInterrupt(*jsContext); |
| 3706 | } else { |
| 3707 | _dispatchQueue->async([session]() { |
| 3708 | // If our dispatch queue evaluated our call, we mark the current capture as completed |
| 3709 | // because it would mean that we finished executing tasks that were in the JS thread before. |
| 3710 | session->setCapturedStacktrace( |
| 3711 | JavaScriptCapturedStacktrace(JavaScriptCapturedStacktrace::Status::NOT_RUNNING, StringBox(), nullptr)); |
no test coverage detected