| 49 | } |
| 50 | |
| 51 | void JavaScriptWorker::postInit() { |
| 52 | constexpr auto reason = JsThreadDispatchReason::WorkerPostInit; |
| 53 | _workerRuntime->dispatchOnJsThread( |
| 54 | reason, JavaScriptTaskScheduleTypeDefault, 0, [self = strongSmallRef(this)](JavaScriptEntryParameters& entry) { |
| 55 | if (self->isRunning()) { |
| 56 | self->doPostInit(); |
| 57 | } |
| 58 | }); |
| 59 | } |
| 60 |
no test coverage detected