Update the name handling of anonymous functions to ES11 (#4279)
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
This commit is contained in:
@@ -340,6 +340,19 @@ ecma_is_value_symbol (ecma_value_t value) /**< ecma value */
|
||||
#endif /* ENABLED (JERRY_ESNEXT) */
|
||||
} /* ecma_is_value_symbol */
|
||||
|
||||
/**
|
||||
* Check if the value is a specific magic string.
|
||||
*
|
||||
* @return true - if the value the magic string value,
|
||||
* false - otherwise
|
||||
*/
|
||||
extern inline bool JERRY_ATTR_CONST JERRY_ATTR_ALWAYS_INLINE
|
||||
ecma_is_value_magic_string (ecma_value_t value, /**< ecma value */
|
||||
lit_magic_string_id_t id) /**< magic string id */
|
||||
{
|
||||
return value == ecma_make_magic_string_value (id);
|
||||
} /* ecma_is_value_magic_string */
|
||||
|
||||
/**
|
||||
* Check if the value is bigint.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user