Frontmatter
| id | 7908 |
| title | Refactor vdom.Helper initAsync to use optional chaining |
| state | Closed |
| labels | airefactoring |
| assignees | tobiu |
| createdAt | Nov 26, 2025, 1:12 PM |
| updatedAt | Nov 26, 2025, 1:16 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7908 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 26, 2025, 1:16 PM |
In
src/vdom/Helper.mjs, theinitAsyncmethod currently checks!NeoConfig.unitTestModebefore accessingNeo.currentWorker. Using optional chainingNeo.currentWorker?.on(...)is cleaner and handles cases wherecurrentWorkeris undefined without an explicit mode check.