diff options
author | FranklinDM <mrmineshafter17@gmail.com> | 2023-04-07 16:30:32 +0800 |
---|---|---|
committer | FranklinDM <mrmineshafter17@gmail.com> | 2023-04-07 23:41:55 +0800 |
commit | 83501c86d2bc9e7b9e12da143204b38f426f20a0 (patch) | |
tree | 2e1dfafa9c49e4b4aeac10c8c3198e06bf05c06d /dom/webidl | |
parent | 5c8599d223fccba1afe68d1cfbfe11ec0231621f (diff) | |
download | uxp-83501c86d2bc9e7b9e12da143204b38f426f20a0.tar.gz |
Issue #2197 - Part 2b: Implement StructuredSerializeOptions for Worker
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
Diffstat (limited to 'dom/webidl')
-rw-r--r-- | dom/webidl/DedicatedWorkerGlobalScope.webidl | 4 | ||||
-rw-r--r-- | dom/webidl/Worker.webidl | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/dom/webidl/DedicatedWorkerGlobalScope.webidl b/dom/webidl/DedicatedWorkerGlobalScope.webidl index ad3125fa31..80c7c8decb 100644 --- a/dom/webidl/DedicatedWorkerGlobalScope.webidl +++ b/dom/webidl/DedicatedWorkerGlobalScope.webidl @@ -16,7 +16,9 @@ Exposed=DedicatedWorker] interface DedicatedWorkerGlobalScope : WorkerGlobalScope { [Throws] - void postMessage(any message, optional sequence<object> transfer = []); + void postMessage(any message, sequence<object> transfer); + [Throws] + void postMessage(any message, optional StructuredSerializeOptions options); attribute EventHandler onmessage; }; diff --git a/dom/webidl/Worker.webidl b/dom/webidl/Worker.webidl index 44f406d8ce..c13357cd7e 100644 --- a/dom/webidl/Worker.webidl +++ b/dom/webidl/Worker.webidl @@ -19,7 +19,9 @@ interface Worker : EventTarget { void terminate(); [Throws] - void postMessage(any message, optional sequence<object> transfer = []); + void postMessage(any message, sequence<object> transfer); + [Throws] + void postMessage(any message, optional StructuredSerializeOptions options); attribute EventHandler onmessage; }; |