Is there any build-in way for access to `self` (De...
# javascript
g
Is there any build-in way for access to
self
(DedicatedWorkerGlobalScope) inside Worker? Or just use external declaration for
self
?
Copy code
private external val self: DedicatedWorkerGlobalScope
We have
kotlin.browser.window
in stdlib, maybe make sense also add
kotlin.js.self
(WindowOrWorkerGlobalScope) or
kotlin.js.worker
(DedicatedWorkerGlobalScope)
youtrack 1
b
please file an issue
g
Ok. thanks, will do
b
Thank you