Comment #10 on issue 3340 by [email protected]: Expose ES6 Map/Set through the V8 API
https://code.google.com/p/v8/issues/detail?id=3340#c10

The following revision refers to this bug:
https://chromium.googlesource.com/v8/v8.git/+/a8d9c58b1f618f518dc3a5a73023e6847544979f

commit a8d9c58b1f618f518dc3a5a73023e6847544979f
Author: adamk <[email protected]>
Date: Tue May 26 18:13:22 2015

Add {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

Review URL: https://codereview.chromium.org/1148383007

Cr-Commit-Position: refs/heads/master@{#28640}

[modify] http://crrev.com/a8d9c58b1f618f518dc3a5a73023e6847544979f/include/v8.h [modify] http://crrev.com/a8d9c58b1f618f518dc3a5a73023e6847544979f/src/api.cc [modify] http://crrev.com/a8d9c58b1f618f518dc3a5a73023e6847544979f/test/cctest/test-api.cc


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to