Skip to content

Commit 1db9650

Browse files
authored
Update PostMessageOptions → StructuredSerializeOptions (#1602)
Follows whatwg/html#3414.
1 parent b890274 commit 1db9650

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/index.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
381381
readonly attribute USVString scriptURL;
382382
readonly attribute ServiceWorkerState state;
383383
undefined postMessage(any message, sequence<object> transfer);
384-
undefined postMessage(any message, optional PostMessageOptions options = {});
384+
undefined postMessage(any message, optional StructuredSerializeOptions options = {});
385385

386386
// event
387387
attribute EventHandler onstatechange;
@@ -459,7 +459,7 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
459459
1. Let |serviceWorker| be the [=/service worker=] represented by [=this=].
460460
1. Let |incumbentSettings| be the [=incumbent settings object=].
461461
1. Let |incumbentGlobal| be |incumbentSettings|'s [=environment settings object/global object=].
462-
1. Let |serializeWithTransferResult| be <a abstract-op>StructuredSerializeWithTransfer</a>(|message|, |options|.transfer). Rethrow any exceptions.
462+
1. Let |serializeWithTransferResult| be <a abstract-op>StructuredSerializeWithTransfer</a>(|message|, |options|["{{StructuredSerializeOptions/transfer}}"]). Rethrow any exceptions.
463463
1. If the result of running the [=Should Skip Event=] algorithm with "message" and |serviceWorker| is true, then return.
464464
1. Run these substeps [=in parallel=]:
465465
1. If the result of running the [=Run Service Worker=] algorithm with |serviceWorker| is *failure*, then return.
@@ -1133,7 +1133,7 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
11331133
readonly attribute DOMString id;
11341134
readonly attribute ClientType type;
11351135
undefined postMessage(any message, sequence&lt;object&gt; transfer);
1136-
undefined postMessage(any message, optional PostMessageOptions options = {});
1136+
undefined postMessage(any message, optional StructuredSerializeOptions options = {});
11371137
};
11381138

11391139
[Exposed=ServiceWorker]
@@ -1213,7 +1213,7 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
12131213

12141214
1. Let |contextObject| be [=this=].
12151215
1. Let |sourceSettings| be the |contextObject|'s [=relevant settings object=].
1216-
1. Let |serializeWithTransferResult| be <a abstract-op>StructuredSerializeWithTransfer</a>(|message|, |options|.transfer). Rethrow any exceptions.
1216+
1. Let |serializeWithTransferResult| be <a abstract-op>StructuredSerializeWithTransfer</a>(|message|, |options|["{{StructuredSerializeOptions/transfer}}"]). Rethrow any exceptions.
12171217
1. Run the following steps [=in parallel=]:
12181218
1. Let |targetClient| be null.
12191219
1. For each [=/service worker client=] |client|:

0 commit comments

Comments
 (0)