@@ -6712,7 +6712,7 @@ <h2 id="instantiation-of-AudioWorkletNode-and-AudioWorkletProcessor">
6712
6712
<p>
6713
6713
When <a>AudioWorkletNode</a>(<var>context</var>,
6714
6714
<var>nodeName</var>, <var>options</var>) constructor is invoked,
6715
- the user agent must perform the following steps on the control
6715
+ the user agent MUST perform the following steps on the control
6716
6716
thread, where the constructor was called.
6717
6717
</p>
6718
6718
<ol>
@@ -6832,10 +6832,7 @@ <h2 id="instantiation-of-AudioWorkletNode-and-AudioWorkletProcessor">
6832
6832
</li>
6833
6833
<li>If <var>processor</var> does not implement the
6834
6834
<a>AudioWorkletProcessor</a> interface, throw an
6835
- <code>"InvalidStateError"</code> DOMException. NOTE: this can occur
6836
- if the author-supplied constructor uses JavaScript's
6837
- return-override feature, or does not properly call
6838
- <code>super()</code>.
6835
+ <code>"InvalidStateError"</code> DOMException.
6839
6836
</li>
6840
6837
<li>Set <var>processor</var>'s <a href=
6841
6838
"#widl-AudioWorkletProcessor-port">port</a> to
@@ -6998,6 +6995,14 @@ <h3>
6998
6995
6999
6996
});
7000
6997
</pre>
6998
+ <div class="note">
6999
+ <p>
7000
+ In the definition of <a>AudioWorkletProcessor</a> class, an
7001
+ <code>InvalidStateError</code> will be thrown if the
7002
+ author-supplied constructor uses JavaScript's return-override
7003
+ feature, or does not properly call <code>super()</code>.
7004
+ </p>
7005
+ </div>
7001
7006
</section>
7002
7007
<section>
7003
7008
<h3>
0 commit comments