if (!("DedicatedWorkerGlobalScope" in self)) { thrownew Error("DedicatedWorkerGlobalScope should be visible!");
} if (!(self instanceof DedicatedWorkerGlobalScope)) { thrownew Error("The global should be a SharedWorkerGlobalScope!");
} if (!(self instanceof WorkerGlobalScope)) { thrownew Error("The global should be a WorkerGlobalScope!");
} if ("SharedWorkerGlobalScope" in self) { thrownew Error("SharedWorkerGlobalScope should not be visible!");
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.