refactor: replace var with const / let (#14866)
This commit is contained in:
parent
b42493e6e6
commit
c61db523c7
26 changed files with 195 additions and 201 deletions
2
spec/fixtures/workers/shared_worker.js
vendored
2
spec/fixtures/workers/shared_worker.js
vendored
|
@ -1,5 +1,5 @@
|
|||
this.onconnect = function (event) {
|
||||
var port = event.ports[0]
|
||||
const port = event.ports[0]
|
||||
port.start()
|
||||
port.onmessage = function (event) {
|
||||
port.postMessage(event.data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue