Skip to content

Commit

Permalink
Correct variable names in serialize and deserialize sections
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored and domenic committed May 15, 2017
1 parent 616df18 commit 48c6b1f
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -7655,7 +7655,7 @@ interface <dfn>DOMStringList</dfn> {
<var>value</var>, a <span>Record</span> <var>serialized</var>, and a boolean
<var>forStorage</var></dt>
<dd>
<p>A set of steps that serializes the data in <var>input</var> into fields of
<p>A set of steps that serializes the data in <var>value</var> into fields of
<var>serialized</var>. The resulting data serialized into <var>serialized</var> must be
independent of any <span>JavaScript Realm</span>.</p>

Expand Down Expand Up @@ -7771,7 +7771,7 @@ interface <dfn>DOMStringList</dfn> {
<dt><dfn data-export="">transfer steps</dfn>, taking a <span>platform object</span>
<var>value</var> and a <span>Record</span> <var>dataHolder</var></dt>
<dd>
<p>A set of steps that transfers the data in <var>input</var> into fields of
<p>A set of steps that transfers the data in <var>value</var> into fields of
<var>dataHolder</var>. The resulting data held in <var>dataHolder</var> must be
independent of any <span>JavaScript Realm</span>.</p>

Expand Down Expand Up @@ -7968,12 +7968,12 @@ interface <dfn>DOMStringList</dfn> {
<!-- IsArray supports proxies too, which we cannot -->

<ol>
<li><p>Let <var>inputLenDescriptor</var> be ?
<li><p>Let <var>valueLenDescriptor</var> be ?
<span>OrdinaryGetOwnProperty</span>(<var>value</var>, "<code data-x="">length</code>").</p></li>

<li><p>Let <var>inputLen</var> be <var>inputLenDescriptor</var>.[[Value]].</p></li>
<li><p>Let <var>valueLen</var> be <var>valueLenDescriptor</var>.[[Value]].</p></li>

<li><p>Set <var>serialized</var> to { [[Type]]: "Array", [[Length]]: <var>inputLen</var>,
<li><p>Set <var>serialized</var> to { [[Type]]: "Array", [[Length]]: <var>valueLen</var>,
[[Properties]]: a new empty <span data-x="js-List">List</span> }.</p></li>

<li><p>Set <var>deep</var> to true.</p></li>
Expand Down Expand Up @@ -8133,9 +8133,10 @@ interface <dfn>DOMStringList</dfn> {
<p>If <span data-x="js-Type">Type</span>(<var>key</var>) is String, then:</p>

<ol>
<li><p>Let <var>inputDesc</var> be ! <var>value</var>.[[GetOwnProperty]](<var>key</var>).</p></li>
<li><p>Let <var>valueDesc</var> be !
<var>value</var>.[[GetOwnProperty]](<var>key</var>).</p></li>

<li><p>If <var>inputDesc</var>.[[Enumerable]] is true, then <span data-x="list
<li><p>If <var>valueDesc</var>.[[Enumerable]] is true, then <span data-x="list
append">append</span> <var>key</var> to <var>enumerableKeys</var>.</p></li>
</ol>
</li>
Expand Down Expand Up @@ -8346,22 +8347,22 @@ o.myself = o;</pre>

<ol>
<li><p>Let <var>deserializedArrayBuffer</var> be ?
<span>StructuredDeserialize</span>(<var>input</var>.[[ArrayBufferSerialized]],
<span>StructuredDeserialize</span>(<var>serialized</var>.[[ArrayBufferSerialized]],
<var>targetRealm</var>, <var>memory</var>).</p></li>

<li><p>If <var>input</var>.[[Constructor]] is "DataView", then set <var>value</var> to a new DataView object in
<var>targetRealm</var> whose [[ViewedArrayBuffer]] internal slot value is
<var>deserializedArrayBuffer</var>, whose [[ByteLength]] internal slot value is
<li><p>If <var>serialized</var>.[[Constructor]] is "DataView", then set <var>value</var> to a
new DataView object in <var>targetRealm</var> whose [[ViewedArrayBuffer]] internal slot value
is <var>deserializedArrayBuffer</var>, whose [[ByteLength]] internal slot value is
<var>serialized</var>.[[ByteLength]], and whose [[ByteOffset]] internal slot value is
<var>serialized</var>.[[ByteOffset]].</p></li>

<li><p>Otherwise, set <var>value</var> to a new typed array object in <var>targetRealm</var>,
using the constructor given by <var>input</var>.[[Constructor]], whose [[ViewedArrayBuffer]]
internal slot value is <var>deserializedArrayBuffer</var>, whose [[TypedArrayName]] internal
slot value is <var>input</var>.[[Constructor]], whose [[ByteLength]] internal slot value is
<var>serialized</var>.[[ByteLength]], whose [[ByteOffset]] internal slot value is
<var>serialized</var>.[[ByteOffset]], and whose [[ArrayLength]] internal slot value is
<var>serialized</var>.[[ArrayLength]].</p></li>
using the constructor given by <var>serialized</var>.[[Constructor]], whose
[[ViewedArrayBuffer]] internal slot value is <var>deserializedArrayBuffer</var>, whose
[[TypedArrayName]] internal slot value is <var>serialized</var>.[[Constructor]], whose
[[ByteLength]] internal slot value is <var>serialized</var>.[[ByteLength]], whose
[[ByteOffset]] internal slot value is <var>serialized</var>.[[ByteOffset]], and whose
[[ArrayLength]] internal slot value is <var>serialized</var>.[[ArrayLength]].</p></li>
</ol>
</li>

Expand Down Expand Up @@ -8562,7 +8563,7 @@ o.myself = o;</pre>
</ol>
</li>

<li><p>Let <var>serialized</var> be ? <span>StructuredSerializeInternal</span>(<var>input</var>,
<li><p>Let <var>serialized</var> be ? <span>StructuredSerializeInternal</span>(<var>value</var>,
false, <var>memory</var>).</p></li>

<li><p>Let <var>transferDataHolders</var> be a new empty <span
Expand Down

0 comments on commit 48c6b1f

Please sign in to comment.