SetEmbedderData() - how to delete the data set by this method?

16 views
Skip to first unread message

Victor Polevoy

unread,
Mar 1, 2023, 4:13:10 AM3/1/23
to v8-dev
I am repeating this post as I couldn't find it in the lists after I posted it the last time.
I am looking for the way to delete the data set by "SetEmbedderData()" at a specific slot. I couldn't find a method to delete it, and setting a "NULL" value there is prohibited, so I have to ask for help here.

Jakob Kummerow

unread,
Mar 1, 2023, 4:33:52 AM3/1/23
to v8-...@googlegroups.com
Assuming you're talking about v8::Context::SetEmbedderData(int index, Local<Value> value), you can clear the slot by writing a JS null (get it with v8::Null(Isolate* isolate)) into it.


On Wed, Mar 1, 2023 at 10:13 AM Victor Polevoy <vityat...@gmail.com> wrote:
I am repeating this post as I couldn't find it in the lists after I posted it the last time.
I am looking for the way to delete the data set by "SetEmbedderData()" at a specific slot. I couldn't find a method to delete it, and setting a "NULL" value there is prohibited, so I have to ask for help here.

--
--
v8-dev mailing list
v8-...@googlegroups.com
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 v8-dev+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/82f2ec3a-c428-420b-a6fe-e41082b1a229n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages