Re: [v8-users] C++ access to WeakMap and WeakSet

2022-08-26 Thread Shu-yu Guo
On Fri, Aug 26, 2022 at 11:32 AM Alex Kodat wrote: > Thanks Shu, > > Interesting. I always thought of the C++ API as fairly complete but maybe > I just always happened to use the bits that are there. Of course I could > create a script that contains functions that C++ can call to create and > upd

Re: [v8-users] C++ access to WeakMap and WeakSet

2022-08-26 Thread Alex Kodat
Thanks Shu, Interesting. I always thought of the C++ API as fairly complete but maybe I just always happened to use the bits that are there. Of course I could create a script that contains functions that C++ can call to create and update a WeakMap (no real use for a WeakSet, at the moment), it'

Re: [v8-users] C++ access to WeakMap and WeakSet

2022-08-26 Thread Shu-yu Guo
Hi Alex, There is no WeakMap and WeakSet support in API. The V8 API doesn't expose many standard library JS values and objects. At least currently, there are no immediate plans to expose them. More exposed surface means higher maintenance burden going forward, so we're likely to consider exposing

[v8-users] C++ access to WeakMap and WeakSet

2022-08-26 Thread Alex Kodat
Is there a way to create and manipulate WeakMaps and WeakSets from C++? This seems like such an obvious missing piece in the C++ API that I'm sure the answer will be embarrassingly obvious (apologies in advance). -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/gr