- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.2k
 
JsObjectDefineProperty
        rhuanjl edited this page Sep 1, 2018 
        ·
        1 revision
      
    Defines a new object's own property from a property descriptor.
CHAKRA_API
    JsObjectDefineProperty(
        _In_ JsValueRef object,
        _In_ JsValueRef key,
        _In_ JsValueRef propertyDescriptor,
        _Out_ bool *result);
- object: The object that has the property.
 - key: The key (JavascriptString or JavascriptSymbol) to the property.
 - propertyDescriptor: The property descriptor.
 - result: Whether the property was defined.
 
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.
- 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!