Skip to content

Commit c6a9a9e

Browse files
return GeolocationPositionError instance
1 parent c91ae18 commit c6a9a9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.bs

+4-2
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ spec: GEOMETRY; urlPrefix: https://drafts.fxtf.org/geometry/
182182
text: height dimension; url: rectangle-height-dimension
183183
spec: GEOLOCATION; urlPrefix: https://www.w3.org/TR/geolocation/
184184
type: dfn
185+
text: GeolocationPositionError; url: #dom-geolocationpositionerror
185186
text: POSITION_UNAVAILABLE; url: #dom-geolocationpositionerror-position_unavailable
186187
text: set emulated position data; url: #dfn-set-emulated-position-data
187188
spec: HTML; urlPrefix: https://html.spec.whatwg.org/multipage/
@@ -5679,8 +5680,9 @@ The [=remote end steps=] with |command parameters| are:
56795680
1. Assert |command parameters|["<code>error</code>"]["<code>type</code>"] equals
56805681
"<code>positionUnavailable</code>".
56815682

5682-
1. Let |emulated position data| be a [=/map=] with value of
5683-
«"code" → [=POSITION_UNAVAILABLE=], "message" → ""».
5683+
1. Let |emulated position data| be a [=/map=] matching [=GeolocationPositionError=]
5684+
production, with <code>code</code> field set to [=POSITION_UNAVAILABLE=] and
5685+
<code>message</code> field set to the empty string.
56845686

56855687
1. Otherwise, let |emulated position data| be
56865688
|command parameters|["<code>coordinates</code>"].

0 commit comments

Comments
 (0)