🍄self

🚧 施工中

JSbrowserworker ⟩ global object

in a web worker, the global object reference is made using self:

var name = "Joe";    // global var => global object prop
let id = 42;         // global let

self.name;           // "Joe"
self.id;             // undefined

Last updated