v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
Context::DeepFreezeDelegate Class Referenceabstract

#include <v8-context.h>

Public Member Functions

virtual bool FreezeEmbedderObjectAndGetChildren (Local< Object > obj, LocalVector< Object > &children_out)=0
 

Detailed Description

Delegate to help with Deep freezing embedder-specific objects (such as JSApiObjects) that can not be frozen natively.

Definition at line 214 of file v8-context.h.

Member Function Documentation

◆ FreezeEmbedderObjectAndGetChildren()

virtual bool FreezeEmbedderObjectAndGetChildren ( Local< Object obj,
LocalVector< Object > &  children_out 
)
pure virtual

Performs embedder-specific operations to freeze the provided embedder object. The provided object will be frozen by DeepFreeze after this function returns, so only embedder-specific objects need to be frozen. This function may not create new JS objects or perform JS allocations. Any v8 objects reachable from the provided embedder object that should also be considered for freezing should be added to the children_out parameter. Returns true if the operation completed successfully.


The documentation for this class was generated from the following file: