[w3c/ServiceWorker] Editorial: Align with Web IDL specification (#1541)

This is an automated pull request to align the spec with the latest Web IDL specification.

Currently the autofix might introduce some awkward code formatting, so please feel free to modify the formatting.

Please file an issue on https://github.com/saschanaz/webidl-updater/issues/new if you think this PR is invalid or should be enhanced.

The following is the validation messages from webidl2.js, which may help understanding this PR:

```
Validation error at line 5 in service-workers-1,0:
  void postMessage(any message
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 6 in service-workers-1,0:
  void postMessage(any message
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 11 in service-workers-1,1:
  [NewObject] Promise<void> update()
                      ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 11 in service-workers-1,3:
  void startMessages();
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 3 in service-workers-1,5:
  Promise<void> enable()
          ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 4 in service-workers-1,5:
  Promise<void> disable()
          ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 5 in service-workers-1,5:
  Promise<void> setHeaderValue(ByteString
          ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 7 in service-workers-1,6:
  [NewObject] Promise<void> skipWaiting()
                      ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 7 in service-workers-1,7:
  void postMessage(any message
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 8 in service-workers-1,7:
  void postMessage(any message
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 7 in service-workers-1,8:
  [NewObject] Promise<void> claim()
                      ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 4 in service-workers-1,11:
  void waitUntil(Promise<
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 9 in service-workers-1,13:
  readonly attribute Promise<void> handled;
                             ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 11 in service-workers-1,13:
  void respondWith(Promise<
  ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 7 in service-workers-1,14:
  Promise<void> handled;
          ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 5 in service-workers-1,18:
  [NewObject] Promise<void> add(RequestInfo
                      ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 6 in service-workers-1,18:
  [NewObject] Promise<void> addAll(sequence
                      ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.

Validation error at line 7 in service-workers-1,18:
  [NewObject] Promise<void> put(RequestInfo
                      ^ `void` is now replaced by `undefined`. Refer to the [relevant GitHub issue](https://github.com/heycam/webidl/issues/60) for more information.
```
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1541

-- Commit Summary --

  * Editorial: Align with Web IDL specification

-- File Changes --

    M docs/index.bs (36)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1541.patch
https://github.com/w3c/ServiceWorker/pull/1541.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1541

Received on Monday, 21 September 2020 01:28:56 UTC