Skip to content

Commit

Permalink
Update PostMessageOptions → StructuredSerializeOptions (w3c#1602)
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Aug 2, 2021
1 parent b890274 commit 1db9650
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
readonly attribute USVString scriptURL;
readonly attribute ServiceWorkerState state;
undefined postMessage(any message, sequence<object> transfer);
undefined postMessage(any message, optional PostMessageOptions options = {});
undefined postMessage(any message, optional StructuredSerializeOptions options = {});

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

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

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

0 comments on commit 1db9650

Please sign in to comment.