Skip to content

Commit

Permalink
Merge pull request #208 from WICG/cammie-branch1
Browse files Browse the repository at this point in the history
Fix references to dataOrigin in createWorklet algo
  • Loading branch information
xyaoinum authored Nov 23, 2024
2 parents 0eccc1d + 03fa7ca commit 727698b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ On the other hand, methods for getting data from the [=shared storage database=]
The <dfn method for="SharedStorage">createWorklet(|moduleURL|, |options|)</dfn> method steps are:

1. Let |sharedStorageWorklet| be a new {{SharedStorageWorklet}}.
1. If |options| [=map/contains=] |dataOrigin|, set |sharedStorageWorklet|'s [=SharedStorageWorklet/data origin=] to |options|[|dataOrigin|].
1. If |options| [=map/contains=] "{{SharedStorageWorkletOptions/dataOrigin}}", set |sharedStorageWorklet|'s [=SharedStorageWorklet/data origin=] to |options|["{{SharedStorageWorkletOptions/dataOrigin}}"].
1. Let |addModulePromise| be the result of invoking sharedStorageWorklet.{{Worklet/addModule()|addModule}}(|moduleURL|, |options|).
1. Let |resultPromise| be a new [=promise=].
1. [=Upon fulfillment=] of |addModulePromise|, [=resolve=] |resultPromise| to |sharedStorageWorklet|.
Expand Down

0 comments on commit 727698b

Please sign in to comment.