gecko-dev/dom/workers/test/WorkerDebugger_sharedWorker.js

12 строки
185 B
JavaScript

"use strict";
self.onconnect = function (event) {
event.ports[0].onmessage = function (event) {
switch (event.data) {
case "close":
close();
break;
}
};
};