mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
add `DedicatedWorkerGlobalScope.Name` and `DedicatedWorkerGlobalScope.onmessageerror` Closes https://github.com/servo/servo/issues/40114 --------- Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
17 lines
720 B
Plaintext
17 lines
720 B
Plaintext
/* 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 https://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://html.spec.whatwg.org/multipage/#dedicatedworkerglobalscope
|
|
[Global=(Worker,DedicatedWorker), Exposed=DedicatedWorker]
|
|
interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
|
|
[Replaceable] readonly attribute DOMString name;
|
|
|
|
[Throws] undefined postMessage(any message, sequence<object> transfer);
|
|
[Throws] undefined postMessage(any message, optional StructuredSerializeOptions options = {});
|
|
attribute EventHandler onmessage;
|
|
attribute EventHandler onmessageerror;
|
|
|
|
undefined close();
|
|
};
|