Skip to content

Commit ec89336

Browse files
xiaoyinlmattzeunert
authored andcommitted
Add reference for JsLessThan and JsLessThanOrEqual (microsoft#43)
This PR updates the documents for chakra-core/ChakraCore#3931.
1 parent bb38073 commit ec89336

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

JavaScript-Runtime-(JSRT)-Reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ References of JSRT typedefs, constants, enumerations and APIs.
125125
* [[JsInstanceOf]]
126126
* [[JsIntToNumber]]
127127
* [[JsIsRuntimeExecutionDisabled]]
128+
* [[JsLessThan]]
129+
* [[JsLessThanOrEqual]]
128130
* [[JsNumberToDouble]]
129131
* [[JsNumberToInt]]
130132
* [[JsParse]]

reference/JsLessThan.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Determine if one JavaScript value is less than another JavaScript value.
2+
### Syntax
3+
```
4+
CHAKRA_API
5+
JsLessThan(
6+
_In_ JsValueRef object1,
7+
_In_ JsValueRef object2,
8+
_Out_ bool *result);
9+
```
10+
### Parameters
11+
* __object1__: The first object to compare.
12+
* __object2__: The second object to compare.
13+
* __result__: Whether object1 is less than object2.
14+
15+
### Return Value
16+
The code **JsNoError** if the operation succeeded, a failure code otherwise.
17+
### Remarks
18+
Requires an active script context.
19+
20+
This function is equivalent to the **\<** operator in Javascript.

reference/JsLessThanOrEqual.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Determine if one JavaScript value is less than or equal to another JavaScript value.
2+
### Syntax
3+
```
4+
CHAKRA_API
5+
JsLessThanOrEqual(
6+
_In_ JsValueRef object1,
7+
_In_ JsValueRef object2,
8+
_Out_ bool *result);
9+
```
10+
### Parameters
11+
* __object1__: The first object to compare.
12+
* __object2__: The second object to compare.
13+
* __result__: Whether object1 is less than or equal to object2.
14+
15+
### Return Value
16+
The code **JsNoError** if the operation succeeded, a failure code otherwise.
17+
### Remarks
18+
Requires an active script context.
19+
20+
This function is equivalent to the **\<=** operator in Javascript.

0 commit comments

Comments
 (0)