good first bughelp wanted
倉庫指標
- Star
- (27,361 star)
- PR 合併指標
- (平均合併 19天 10小時) (30 天內合併 147 個 PR)
描述
This is a feature suggestion.
Workers accept an optional name which can be used for debugging, e.g. in DevTools we show the name in the Sources panel.

The name is also available to the worker via globalThis.name.
My suggestion is that in src/library_pthread.js, in allocateUnusedWorker when we call new Worker(), we give a useful name like pthread #1 etc.
Right now threads just show up with the file name (which also means all the threads have the same name).