Skip to content

Commit

Permalink
Fix problem with parsing & assigning Promise resolution value. (WICG#854
Browse files Browse the repository at this point in the history
)
  • Loading branch information
qingxinwu authored Oct 11, 2023
1 parent 07bee97 commit bf050a2
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -916,24 +916,16 @@ To <dfn>validate and convert auction ad config</dfn> given an {{AuctionAdConfig}
|config|["{{AuctionAdConfig/auctionSignals}}"].
1. [=Handle an input promise in configuration=] given |auctionConfig| and |auctionConfig|'s
[=auction config/auction signals=]:
* To parse the value |result|:
1. Let |auctionSignalsJSON| be the result of
[=serializing a JavaScript value to a JSON string=], given |result|.
1. Set |auctionConfig|'s [=auction config/auction signals=] to |auctionSignalsJSON|.
1. Set |auctionConfig|'s [=auction config/config idl=]["{{AuctionAdConfig/auctionSignals}}"]
to |result|.
* To handle an error:
1. Set |auctionConfig|'s [=auction config/auction signals=] to failure.
1. Set |auctionConfig|'s [=auction config/config idl=]["{{AuctionAdConfig/auctionSignals}}"]
to {{undefined}}.
* To parse the value |result|, set |auctionConfig|'s [=auction config/auction signals=] to the
result of [=serializing a JavaScript value to a JSON string=].
* To handle an error, set |auctionConfig|'s [=auction config/auction signals=] to failure.
1. If |config|["{{AuctionAdConfig/sellerSignals}}"] [=map/exists=]:
1. Set |auctionConfig|'s [=auction config/seller signals=] to
|config|["{{AuctionAdConfig/sellerSignals}}"].
1. [=Handle an input promise in configuration=] given |auctionConfig| and |auctionConfig|'s
[=auction config/seller signals=]:
* To parse the value |result|:
1. Set |auctionConfig|'s [=auction config/seller signals=] to the result of
[=serializing a JavaScript value to a JSON string=], given |result|.
* To parse the value |result|, set |auctionConfig|'s [=auction config/seller signals=] to the
result of [=serializing a JavaScript value to a JSON string=], given |result|.
* To handle an error, set |auctionConfig|'s [=auction config/seller signals=] to failure.
1. If |config|["{{AuctionAdConfig/directFromSellerSignals}}"] [=map/exists=]:
1. TODO: The receiving end of this isn't specified yet, so there is no place to put the computed value.
Expand Down

0 comments on commit bf050a2

Please sign in to comment.