@@ -764,10 +764,10 @@ CHAKRA_API
764
764
/// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
765
765
/// </returns>
766
766
CHAKRA_API
767
- JsLessThan (
768
- _In_ JsValueRef object1 ,
769
- _In_ JsValueRef object2 ,
770
- _Out_ bool * result );
767
+ JsLessThan (
768
+ _In_ JsValueRef object1 ,
769
+ _In_ JsValueRef object2 ,
770
+ _Out_ bool * result );
771
771
772
772
/// <summary>
773
773
/// Determine if one JavaScript value is less than or equal to another JavaScript value.
@@ -787,10 +787,141 @@ JsLessThan(
787
787
/// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
788
788
/// </returns>
789
789
CHAKRA_API
790
- JsLessThanOrEqual (
791
- _In_ JsValueRef object1 ,
792
- _In_ JsValueRef object2 ,
793
- _Out_ bool * result );
790
+ JsLessThanOrEqual (
791
+ _In_ JsValueRef object1 ,
792
+ _In_ JsValueRef object2 ,
793
+ _Out_ bool * result );
794
794
795
+ /// <summary>
796
+ /// Gets an object's property.
797
+ /// </summary>
798
+ /// <remarks>
799
+ /// Requires an active script context.
800
+ /// </remarks>
801
+ /// <param name="object">The object that contains the property.</param>
802
+ /// <param name="key">The key (JavascriptString) to the property.</param>
803
+ /// <param name="value">The value of the property.</param>
804
+ /// <returns>
805
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
806
+ /// </returns>
807
+ CHAKRA_API
808
+ JsObjectGetProperty (
809
+ _In_ JsValueRef object ,
810
+ _In_ JsValueRef key ,
811
+ _Out_ JsValueRef * value );
812
+
813
+ /// <summary>
814
+ /// Puts an object's property.
815
+ /// </summary>
816
+ /// <remarks>
817
+ /// Requires an active script context.
818
+ /// </remarks>
819
+ /// <param name="object">The object that contains the property.</param>
820
+ /// <param name="key">The key (JavascriptString) to the property.</param>
821
+ /// <param name="value">The new value of the property.</param>
822
+ /// <param name="useStrictRules">The property set should follow strict mode rules.</param>
823
+ /// <returns>
824
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
825
+ /// </returns>
826
+ CHAKRA_API
827
+ JsObjectSetProperty (
828
+ _In_ JsValueRef object ,
829
+ _In_ JsValueRef key ,
830
+ _In_ JsValueRef value ,
831
+ _In_ bool useStrictRules );
832
+
833
+ /// <summary>
834
+ /// Determines whether an object has a property.
835
+ /// </summary>
836
+ /// <remarks>
837
+ /// Requires an active script context.
838
+ /// </remarks>
839
+ /// <param name="object">The object that may contain the property.</param>
840
+ /// <param name="key">The key (JavascriptString) to the property.</param>
841
+ /// <param name="hasProperty">Whether the object (or a prototype) has the property.</param>
842
+ /// <returns>
843
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
844
+ /// </returns>
845
+ CHAKRA_API
846
+ JsObjectHasProperty (
847
+ _In_ JsValueRef object ,
848
+ _In_ JsValueRef key ,
849
+ _Out_ bool * hasProperty );
850
+
851
+ /// <summary>
852
+ /// Defines a new object's own property from a property descriptor.
853
+ /// </summary>
854
+ /// <remarks>
855
+ /// Requires an active script context.
856
+ /// </remarks>
857
+ /// <param name="object">The object that has the property.</param>
858
+ /// <param name="key">The key (JavascriptString) to the property.</param>
859
+ /// <param name="propertyDescriptor">The property descriptor.</param>
860
+ /// <param name="result">Whether the property was defined.</param>
861
+ /// <returns>
862
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
863
+ /// </returns>
864
+ CHAKRA_API
865
+ JsObjectDefineProperty (
866
+ _In_ JsValueRef object ,
867
+ _In_ JsValueRef key ,
868
+ _In_ JsValueRef propertyDescriptor ,
869
+ _Out_ bool * result );
870
+
871
+ /// <summary>
872
+ /// Deletes an object's property.
873
+ /// </summary>
874
+ /// <remarks>
875
+ /// Requires an active script context.
876
+ /// </remarks>
877
+ /// <param name="object">The object that contains the property.</param>
878
+ /// <param name="key">The key (JavascriptString) to the property.</param>
879
+ /// <param name="useStrictRules">The property set should follow strict mode rules.</param>
880
+ /// <param name="result">Whether the property was deleted.</param>
881
+ /// <returns>
882
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
883
+ /// </returns>
884
+ CHAKRA_API
885
+ JsObjectDeleteProperty (
886
+ _In_ JsValueRef object ,
887
+ _In_ JsValueRef key ,
888
+ _In_ bool useStrictRules ,
889
+ _Out_ JsValueRef * result );
890
+
891
+ /// <summary>
892
+ /// Gets a property descriptor for an object's own property.
893
+ /// </summary>
894
+ /// <remarks>
895
+ /// Requires an active script context.
896
+ /// </remarks>
897
+ /// <param name="object">The object that has the property.</param>
898
+ /// <param name="key">The key (JavascriptString) to the property.</param>
899
+ /// <param name="propertyDescriptor">The property descriptor.</param>
900
+ /// <returns>
901
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
902
+ /// </returns>
903
+ CHAKRA_API
904
+ JsObjectGetOwnPropertyDescriptor (
905
+ _In_ JsValueRef object ,
906
+ _In_ JsValueRef key ,
907
+ _Out_ JsValueRef * propertyDescriptor );
908
+
909
+ /// <summary>
910
+ /// Determines whether an object has a non-inherited property.
911
+ /// </summary>
912
+ /// <remarks>
913
+ /// Requires an active script context.
914
+ /// </remarks>
915
+ /// <param name="object">The object that may contain the property.</param>
916
+ /// <param name="key">The key (JavascriptString) to the property.</param>
917
+ /// <param name="hasOwnProperty">Whether the object has the non-inherited property.</param>
918
+ /// <returns>
919
+ /// The code <c>JsNoError</c> if the operation succeeded, a failure code otherwise.
920
+ /// </returns>
921
+ CHAKRA_API
922
+ JsObjectHasOwnProperty (
923
+ _In_ JsValueRef object ,
924
+ _In_ JsValueRef key ,
925
+ _Out_ bool * hasOwnProperty );
795
926
#endif // _CHAKRACOREBUILD
796
927
#endif // _CHAKRACORE_H_
0 commit comments