DescriptionAdd {Map,Set}::AsArray to the API
These return arrays representing the current contents of the given
Map/Set. They are similar to what would be returned by the JS code:
Array.from(collection)
except that they are guaranteed side-effect free.
This will be useful in implementing structured clone which, as
specified in HTML, speaks in terms of the internal [[MapData]]
and [[SetData]] slots without going through the exposed iteration
ES semantics.
BUG=v8:3340
LOG=y
Committed: https://crrev.com/a8d9c58b1f618f518dc3a5a73023e6847544979f
Cr-Commit-Position: refs/heads/master@{#28640}
Patch Set 1 #Patch Set 2 : Rebased #
Messages
Total messages: 12 (6 generated)
|