2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-06-05 18:04:23 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
2019-09-27 18:26:14 +03:00
|
|
|
[Exposed=Window]
|
2013-06-05 18:04:23 +04:00
|
|
|
interface SharedWorker : EventTarget {
|
2019-09-12 14:01:17 +03:00
|
|
|
[Throws]
|
|
|
|
constructor(USVString scriptURL,
|
|
|
|
optional (DOMString or WorkerOptions) options = {});
|
|
|
|
|
2013-11-05 18:16:26 +04:00
|
|
|
readonly attribute MessagePort port;
|
2013-06-05 18:04:23 +04:00
|
|
|
};
|
|
|
|
|
2019-09-24 18:22:26 +03:00
|
|
|
SharedWorker includes AbstractWorker;
|