- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.2k
 
JsGetProxyProperties
        rhuanjl edited this page Sep 1, 2018 
        ·
        1 revision
      
    Determines if a provided object is a JavscriptProxy Object and provides references to a Proxy's target and handler.
CHAKRA_API
    JsGetProxyProperties(
        _In_ JsValueRef object,
        _Out_ bool* isProxy,
        _Out_opt_ JsValueRef* target,
        _Out_opt_ JsValueRef* handler);
- object: The object that may be a Proxy.
 - isProxy: Pointer to a Boolean - is the object a proxy?
 - target: Pointer to a JsValueRef - the object's target.
 - handler: Pointer to a JsValueRef - the object's handler.
 
The code JsNoError if the operation succeeded, a failure code otherwise.
This API is experimental and may have breaking changes later.
Requires an active script context. If object is not a Proxy object the target and handler parameters are not touched. If nullptr is supplied for target or handler the function returns after setting the isProxy value. If the object is a revoked Proxy target and handler are set to JS_INVALID_REFERENCE. If it is a Proxy object that has not been revoked target and handler are set to the the object's target and handler.
- 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!