NEW 205253
Web Worker name is not passed to Worker local scope
https://bugs.webkit.org/show_bug.cgi?id=205253
Summary Web Worker name is not passed to Worker local scope
jujjyl
Reported 2019-12-15 12:44:14 PST
Page a.html: <html><body><script> new Worker('worker.js', { name: 'testPassingNameToWorker'}); </script></body></html> File worker.js: console.log(this.name); console.log(name); // Using implicit this Expected: Should print 'testPassingNameToWorker' twice. Observed: Prints undefined and throws an exception on variable 'name' not being found. Works on Firefox and Chrome.
Attachments
Radar WebKit Bug Importer
Comment 1 2019-12-16 11:25:25 PST
Note You need to log in before you can comment on or make changes to this bug.