[html5] r3733 - [w] (2) Prevent recloning a cloned port.

whatwg at whatwg.org whatwg at whatwg.org
Wed Sep 2 15:34:59 PDT 2009


Author: ianh
Date: 2009-09-02 15:34:58 -0700 (Wed, 02 Sep 2009)
New Revision: 3733

Modified:
   index
   source
Log:
[w] (2) Prevent recloning a cloned port.

Modified: index
===================================================================
--- index	2009-09-02 22:18:25 UTC (rev 3732)
+++ index	2009-09-02 22:34:58 UTC (rev 3733)
@@ -58991,9 +58991,10 @@
 
    <li> <!-- NEW STEP -->
 
-    <p>If any of the entries in <var title="">ports</var> are null, or
-    if any <code><a href=#messageport>MessagePort</a></code> object is listed in <var title="">ports</var> more than once, then throw an
-    <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</p>
+    <p>If any of the entries in <var title="">ports</var> are null, if
+    any <code><a href=#messageport>MessagePort</a></code> object is listed in <var title="">ports</var> more than once, or if any of the
+    <code><a href=#messageport>MessagePort</a></code> objects listed in <var title="">ports</var> have already been cloned once before, then
+    throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</p>
 
    </li>
 
@@ -59295,11 +59296,12 @@
    <var title="">source port</var> is entangled, if any.</li>
 
    <li><p>If the method was called with a second argument <var title="">ports</var> and that argument isn't null, then, if any of
-   the entries in <var title="">ports</var> are null, or if any
-   <code><a href=#messageport>MessagePort</a></code> object is listed in <var title="">ports</var> more than once, or if any of the entries in
-   <var title="">ports</var> are either the <var title="">source
-   port</var> or the <var title="">target port</var> (if any), then
-   throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception.</li>
+   the entries in <var title="">ports</var> are null, if any
+   <code><a href=#messageport>MessagePort</a></code> object is listed in <var title="">ports</var> more than once, if any of the
+   <code><a href=#messageport>MessagePort</a></code> objects listed in <var title="">ports</var> have already been cloned once before, or if
+   any of the entries in <var title="">ports</var> are either the <var title="">source port</var> or the <var title="">target port</var>
+   (if any), then throw an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
+   exception.</li>
 
    <li><p>If there is no <var title="">target port</var> (i.e. if <var title="">source port</var> is not entangled), then abort these
    steps.</li>

Modified: source
===================================================================
--- source	2009-09-02 22:18:25 UTC (rev 3732)
+++ source	2009-09-02 22:34:58 UTC (rev 3733)
@@ -73182,10 +73182,12 @@
 
    <li> <!-- NEW STEP -->
 
-    <p>If any of the entries in <var title="">ports</var> are null, or
-    if any <code>MessagePort</code> object is listed in <var
-    title="">ports</var> more than once, then throw an
-    <code>INVALID_STATE_ERR</code> exception.</p>
+    <p>If any of the entries in <var title="">ports</var> are null, if
+    any <code>MessagePort</code> object is listed in <var
+    title="">ports</var> more than once, or if any of the
+    <code>MessagePort</code> objects listed in <var
+    title="">ports</var> have already been cloned once before, then
+    throw an <code>INVALID_STATE_ERR</code> exception.</p>
 
    </li>
 
@@ -73540,12 +73542,15 @@
 
    <li><p>If the method was called with a second argument <var
    title="">ports</var> and that argument isn't null, then, if any of
-   the entries in <var title="">ports</var> are null, or if any
+   the entries in <var title="">ports</var> are null, if any
    <code>MessagePort</code> object is listed in <var
-   title="">ports</var> more than once, or if any of the entries in
-   <var title="">ports</var> are either the <var title="">source
-   port</var> or the <var title="">target port</var> (if any), then
-   throw an <code>INVALID_STATE_ERR</code> exception.</p></li>
+   title="">ports</var> more than once, if any of the
+   <code>MessagePort</code> objects listed in <var
+   title="">ports</var> have already been cloned once before, or if
+   any of the entries in <var title="">ports</var> are either the <var
+   title="">source port</var> or the <var title="">target port</var>
+   (if any), then throw an <code>INVALID_STATE_ERR</code>
+   exception.</p></li>
 
    <li><p>If there is no <var title="">target port</var> (i.e. if <var
    title="">source port</var> is not entangled), then abort these




More information about the Commit-Watchers mailing list