Skip to content

Commit d5f63d2

Browse files
annevkdomenic
authored andcommitted
Deserialize typed array objects in targetRealm as well
Spotted in tc39/ecma262#418.
1 parent 26aa7c3 commit d5f63d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8269,10 +8269,10 @@ o.myself = o;</pre>
82698269
<var>serialized</var>.[[ByteLength]], and whose [[ByteOffset]] internal slot value is
82708270
<var>serialized</var>.[[ByteOffset]].</p></li>
82718271

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

0 commit comments

Comments
 (0)