Fix documentation and add back some tests (#4673)

JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi csgergo92@gmail.com
This commit is contained in:
Gergo Csizi
2021-05-26 10:28:32 +00:00
committed by GitHub
parent 7be339ad61
commit ce5e4d49b1
4 changed files with 113 additions and 0 deletions
+28
View File
@@ -1185,6 +1185,34 @@ jerry_value_is_boolean (const jerry_value_t value) /**< api value */
return ecma_is_value_boolean (value);
} /* jerry_value_is_boolean */
/**
* Check if the specified value is true.
*
* @return true - if the specified value is true
* false - otherwise
*/
bool
jerry_value_is_true (const jerry_value_t value) /**< api value */
{
jerry_assert_api_available ();
return ecma_is_value_true (value);
} /* jerry_value_is_true */
/**
* Check if the specified value is false.
*
* @return true - if the specified value is false
* false - otherwise
*/
bool
jerry_value_is_false (const jerry_value_t value) /**< api value */
{
jerry_assert_api_available ();
return ecma_is_value_false (value);
} /* jerry_value_is_false */
/**
* Check if the specified value is a constructor function object value.
*