- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.2k
JsSetObjectBeforeCollectCallback
        Limin Zhu edited this page Oct 9, 2015 
        ·
        1 revision
      
    Sets a callback function that is called by the runtime before garbage collection of an object.
STDAPI_(JsErrorCode)
    JsSetObjectBeforeCollectCallback(
    _In_ JsRef ref,
    _In_opt_ void *callbackState,
    _In_ JsObjectBeforeCollectCallback objectBeforeCollectCallback);
- ref: The object for which to register the callback.
- callbackState: User provided state that will be passed back to the callback.
- objectBeforeCollectCallback: The callback function being set. Use null to clear previously registered callback.
The code JsNoError if the operation succeeded, a failure code otherwise.
The callback is invoked on the current runtime execution thread, therefore execution is blocked until the callback completes.
- Architecture Overview
- Building ChakraCore
- ChakraCore Code Structure
- Contributor Guidance
- Engineering Notes
- Embedding ChakraCore
- Testing ChakraCore
- Getting ChakraCore binaries
- Label Glossary
- Resources
- Roadmap / Release Notes
Want to contribute to this Wiki? Fork it and send a pull request!