diff --git a/docs/index.bs b/docs/index.bs
index 9f3a3985..923d6889 100644
--- a/docs/index.bs
+++ b/docs/index.bs
@@ -475,15 +475,15 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
update() method *must* run these steps:
- 1. Let |p| be a promise.
1. Let |registration| be the [=ServiceWorkerRegistration/service worker registration=].
1. Let |newestWorker| be the result of running Get Newest Worker algorithm passing |registration| as its argument.
- 1. If |newestWorker| is null, reject |p| with an "{{InvalidStateError}}" exception and abort these steps.
- 1. If the context object's relevant settings object's [=environment settings object/global object=] |globalObject| is a {{ServiceWorkerGlobalScope}} object, and |globalObject|'s associated [=ServiceWorkerGlobalScope/service worker=]'s state is *installing*, reject |p| with an "{{InvalidStateError}}" exception and abort these steps.
- 1. Let |job| be the result of running Create Job with *update*, |registration|'s [=service worker registration/scope url=], |newestWorker|'s [=service worker/script url=], |p|, and the context object's relevant settings object.
+ 1. If |newestWorker| is null, return [=a promise rejected with=] an "{{InvalidStateError}}" exception and abort these steps.
+ 1. If the context object's relevant settings object's [=environment settings object/global object=] |globalObject| is a {{ServiceWorkerGlobalScope}} object, and |globalObject|'s associated [=ServiceWorkerGlobalScope/service worker=]'s state is *installing*, return [=a promise rejected with=] an "{{InvalidStateError}}" exception and abort these steps.
+ 1. Let |promise| be a promise.
+ 1. Let |job| be the result of running Create Job with *update*, |registration|'s [=service worker registration/scope url=], |newestWorker|'s [=service worker/script url=], |promise|, and the context object's relevant settings object.
1. Set |job|'s worker type to |newestWorker|'s [=service worker/type=].
1. Invoke Schedule Job with |job|.
- 1. Return |p|.
+ 1. Return |promise|.
@@ -493,10 +493,10 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
unregister() method *must* run these steps:
- 1. Let |p| be a promise.
- 1. Let |job| be the result of running Create Job with *unregister*, the [=service worker registration/scope url=] of the [=ServiceWorkerRegistration/service worker registration=], null, |p|, and the context object's relevant settings object.
+ 1. Let |promise| be a promise.
+ 1. Let |job| be the result of running Create Job with *unregister*, the [=service worker registration/scope url=] of the [=ServiceWorkerRegistration/service worker registration=], null, |promise|, and the context object's relevant settings object.
1. Invoke Schedule Job with |job|.
- 1. Return |p|.
+ 1. Return |promise|.
diff --git a/docs/index.html b/docs/index.html
index ad6abe66..c86dd0d5 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1177,7 +1177,7 @@
}
}
-
+