@@ -128,24 +128,24 @@ used, or the user agent needs to reclaim memory.
128
128
129
129
When the <dfn method for=PaintWorkletGlobalScope>registerPaint(|name|, |paintCtor|)</dfn> method is
130
130
called, the user agent <em> must</em> run the following steps:
131
- 1. If the |name| is not a valid <<ident>> , <a>throw</a> a <a>NotSupportedError </a> and abort all
132
- these steps.
131
+ 1. If the |name| is not a valid <<ident>> , <a>throw</a> a <a>TypeError </a> and abort all these
132
+ steps.
133
133
134
134
2. If the |name| exists as a key in the <a>paint name to constructor map</a> , <a>throw</a> a
135
135
<a>NotSupportedError</a> and abort all these steps.
136
136
137
137
3. If the result of <a>IsConstructor</a> (argument=|paintCtor|) is false, <a>throw</a> a
138
- <a>NotSupportedError </a> and abort all these steps.
138
+ <a>TypeError </a> and abort all these steps.
139
139
140
140
4. Let |prototype| be the result of <a>Get</a> (O=|paintCtor|, P="prototype").
141
141
142
142
5. If the result of <a>IsCallable</a> (argument=<a>Get</a> (O=|prototype|, P="paint")) is false,
143
- <a>throw</a> a <a>NotSupportedError </a> and abort all these steps.
143
+ <a>throw</a> a <a>TypeError </a> and abort all these steps.
144
144
145
145
6. Let |inputProperties| be the result of <a>Get</a> (O=|paintCtor|, P="inputProperties").
146
146
147
- 7. If the result of <a>IsArray</a> (argument=|inputProperties|) is false, <a>throw</a> a
148
- <a>NotSupportedError </a> and abort all these steps.
147
+ 7. If |inputProperties| is not undefined, and the result of <a>IsArray</a> (argument=
148
+ |inputProperties|) is false, <a>throw</a> a <a>TypeError </a> and abort all these steps.
149
149
150
150
8. Add the key-value pair (|name| - |inputProperties|) to the <a>paint name to input properties
151
151
map</a> of the associated <a>document</a> .
0 commit comments