From 026dbaafd4a850bdf76ff51eae73112b45d9dd22 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Mon, 28 Oct 2024 15:02:33 -0400 Subject: [PATCH] Handle errors from JSON serialization. (#666) --- spec/index.bs | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/index.bs b/spec/index.bs index e102209b..9ee1e37f 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -1208,6 +1208,7 @@ To fetch an identity assertion given a {{USVString}} 1. If |provider|'s {{IdentityProviderRequestOptions/params}} is not empty: 1. Let |json| be the result of [=serializing a JavaScript value to a JSON string=] with |provider|'s {{IdentityProviderRequestOptions/params}}. + 1. If serializing threw an exception, return failure. 1. Append ("params", |json|) to |list|. 1. Let |requestBody| be the result of running [=urlencoded serializer=] with |list|. 1. Let |request| be a new request as follows: