Implement asInteger, asUint32 and asInt32 jerry api methods (#4325)

JerryScript-DCO-1.0-Signed-off-by: bence gabor kis kisbg@inf.u-szeged.hu
This commit is contained in:
kisbg
2020-11-18 07:37:56 +01:00
committed by GitHub
parent 5d916fb8d4
commit 7de7c2168e
4 changed files with 304 additions and 0 deletions
+3
View File
@@ -557,6 +557,9 @@ jerry_value_t jerry_value_to_object (const jerry_value_t value);
jerry_value_t jerry_value_to_primitive (const jerry_value_t value);
jerry_value_t jerry_value_to_string (const jerry_value_t value);
jerry_value_t jerry_value_to_bigint (const jerry_value_t value);
double jerry_value_as_integer (const jerry_value_t value);
int32_t jerry_value_as_int32 (const jerry_value_t value);
uint32_t jerry_value_as_uint32 (const jerry_value_t value);
/**
* Acquire types with reference counter (increase the references).