@@ -745,5 +745,118 @@ CHAKRA_API
745
745
_Out_opt_ unsigned int * byteOffset ,
746
746
_Out_opt_ unsigned int * byteLength );
747
747
748
+ /// <summary>
749
+ /// Gets an object's property.
750
+ /// </summary>
751
+ /// <remarks>
752
+ /// Requires an active script context.
753
+ /// </remarks>
754
+ /// <param name="object">The object that contains the property.</param>
755
+ /// <param name="key">The key (JavascriptString) to the property.</param>
756
+ /// <param name="value">The value of the property.</param>
757
+ /// <returns>
758
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
759
+ /// </returns>
760
+ CHAKRA_API
761
+ JsObjectGetProperty (
762
+ _In_ JsValueRef object ,
763
+ _In_ JsValueRef key ,
764
+ _Out_ JsValueRef * value );
765
+
766
+ /// <summary>
767
+ /// Puts an object's property.
768
+ /// </summary>
769
+ /// <remarks>
770
+ /// Requires an active script context.
771
+ /// </remarks>
772
+ /// <param name="object">The object that contains the property.</param>
773
+ /// <param name="key">The key (JavascriptString) to the property.</param>
774
+ /// <param name="value">The new value of the property.</param>
775
+ /// <param name="useStrictRules">The property set should follow strict mode rules.</param>
776
+ /// <returns>
777
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
778
+ /// </returns>
779
+ CHAKRA_API
780
+ JsObjectSetProperty (
781
+ _In_ JsValueRef object ,
782
+ _In_ JsValueRef key ,
783
+ _In_ JsValueRef value ,
784
+ _In_ bool useStrictRules );
785
+
786
+ /// <summary>
787
+ /// Determines whether an object has a property.
788
+ /// </summary>
789
+ /// <remarks>
790
+ /// Requires an active script context.
791
+ /// </remarks>
792
+ /// <param name="object">The object that may contain the property.</param>
793
+ /// <param name="key">The key (JavascriptString) to the property.</param>
794
+ /// <param name="hasProperty">Whether the object (or a prototype) has the property.</param>
795
+ /// <returns>
796
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
797
+ /// </returns>
798
+ CHAKRA_API
799
+ JsObjectHasProperty (
800
+ _In_ JsValueRef object ,
801
+ _In_ JsValueRef key ,
802
+ _Out_ bool * hasProperty );
803
+
804
+ /// <summary>
805
+ /// Defines a new object's own property from a property descriptor.
806
+ /// </summary>
807
+ /// <remarks>
808
+ /// Requires an active script context.
809
+ /// </remarks>
810
+ /// <param name="object">The object that has the property.</param>
811
+ /// <param name="key">The key (JavascriptString) to the property.</param>
812
+ /// <param name="propertyDescriptor">The property descriptor.</param>
813
+ /// <param name="result">Whether the property was defined.</param>
814
+ /// <returns>
815
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
816
+ /// </returns>
817
+ CHAKRA_API
818
+ JsObjectDefineProperty (
819
+ _In_ JsValueRef object ,
820
+ _In_ JsValueRef key ,
821
+ _In_ JsValueRef propertyDescriptor ,
822
+ _Out_ bool * result );
823
+
824
+ /// <summary>
825
+ /// Deletes an object's property.
826
+ /// </summary>
827
+ /// <remarks>
828
+ /// Requires an active script context.
829
+ /// </remarks>
830
+ /// <param name="object">The object that contains the property.</param>
831
+ /// <param name="key">The key (JavascriptString) to the property.</param>
832
+ /// <param name="useStrictRules">The property set should follow strict mode rules.</param>
833
+ /// <param name="result">Whether the property was deleted.</param>
834
+ /// <returns>
835
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
836
+ /// </returns>
837
+ CHAKRA_API
838
+ JsObjectDeleteProperty (
839
+ _In_ JsValueRef object ,
840
+ _In_ JsValueRef key ,
841
+ _In_ bool useStrictRules ,
842
+ _Out_ JsValueRef * result );
843
+
844
+ /// <summary>
845
+ /// Gets a property descriptor for an object's own property.
846
+ /// </summary>
847
+ /// <remarks>
848
+ /// Requires an active script context.
849
+ /// </remarks>
850
+ /// <param name="object">The object that has the property.</param>
851
+ /// <param name="key">The key (JavascriptString) to the property.</param>
852
+ /// <param name="propertyDescriptor">The property descriptor.</param>
853
+ /// <returns>
854
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
855
+ /// </returns>
856
+ CHAKRA_API
857
+ JsObjectGetOwnPropertyDescriptor (
858
+ _In_ JsValueRef object ,
859
+ _In_ JsValueRef key ,
860
+ _Out_ JsValueRef * propertyDescriptor );
748
861
#endif // _CHAKRACOREBUILD
749
862
#endif // _CHAKRACORE_H_
0 commit comments