- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.2k
JsDefineProperty
        Limin Zhu edited this page Oct 9, 2015 
        ·
        1 revision
      
    Defines a new object's own property from a property descriptor.
STDAPI_(JsErrorCode)
    JsDefineProperty(
    _In_ JsValueRef object,
    _In_ JsPropertyIdRef propertyId,
    _In_ JsValueRef propertyDescriptor,
    _Out_ bool *result);
- object: The object that has the property.
- propertyId: The ID of the property.
- propertyDescriptor: The property descriptor.
- result: Whether the property was defined.
The code JsNoError if the operation succeeded, a failure code otherwise.
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!