Issue #2197 - Part 2b: Implement StructuredSerializeOptions for Worker

Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
This commit is contained in:
FranklinDM 2023-04-07 16:30:32 +08:00 committed by roytam1
commit 158784cbed
8 changed files with 56 additions and 2 deletions

View file

@ -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;
};