Add missing BigInt type for value type query API (#4362)

Extended the `jerry_type_t` enum with `JERRY_TYPE_BIGINT` and added it to
the `jerry_value_get_type`.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
This commit is contained in:
Péter Gál
2020-12-15 11:17:11 +01:00
committed by GitHub
parent 9380d93416
commit fe216d4710
4 changed files with 35 additions and 0 deletions
+6
View File
@@ -985,6 +985,12 @@ jerry_value_get_type (const jerry_value_t value) /**< input value to check */
{
return JERRY_TYPE_FUNCTION;
}
#if ENABLED (JERRY_BUILTIN_BIGINT)
case LIT_MAGIC_STRING_BIGINT:
{
return JERRY_TYPE_BIGINT;
}
#endif /* ENABLED (JERRY_BUILTIN_BIGINT) */
default:
{
JERRY_ASSERT (lit_id == LIT_MAGIC_STRING_OBJECT);