Skip to content

Commit

Permalink
Deserialize typed array objects in targetRealm as well
Browse files Browse the repository at this point in the history
Spotted in tc39/ecma262#418.
  • Loading branch information
annevk authored and inikulin committed May 9, 2017
1 parent 71d05d1 commit c882497
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -8269,10 +8269,10 @@ o.myself = o;</pre>
<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, 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
<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>
Expand Down

0 comments on commit c882497

Please sign in to comment.