From 1f3af46ec000774939df440fc3e954846b53f0ce Mon Sep 17 00:00:00 2001 From: Krzysztof Kotowicz Date: Fri, 19 Jan 2024 12:21:08 +0100 Subject: [PATCH] Changed incorrect error mention in Create a Trusted Type algorithm. Closes #382. --- spec/index.bs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/index.bs b/spec/index.bs index 70a1db6..4e4783b 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -901,8 +901,7 @@ a string |value| and a list |arguments|, execute the following steps: 1. If |function| is `null`, throw a TypeError. 1. Let |policyValue| be the result of invoking |function| with |value| as a first argument, items of |arguments| as subsequent arguments, - and [[ECMASCRIPT#sec-method|callback **this** value]] set to `null`. -1. If |policyValue| is an error, return |policyValue| and abort the following steps. + and [[ECMASCRIPT#sec-method|callback **this** value]] set to `null`, rethrowing any exceptions. 1. If |policy|'s [=TrustedTypePolicy/name=] is `"default"` and the |policyValue| is null or undefined, return |policyValue|.