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