Fix typos in the documentation and related files (#4809)
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
@@ -537,7 +537,7 @@ exit:
|
||||
/**
|
||||
* Evaluates an EcmaScript module.
|
||||
*
|
||||
* @return ECMA_VALUE_ERROR - if an error occured
|
||||
* @return ECMA_VALUE_ERROR - if an error occurred
|
||||
* ECMA_VALUE_EMPTY - otherwise
|
||||
*/
|
||||
ecma_value_t
|
||||
@@ -610,7 +610,7 @@ ecma_module_evaluate (ecma_module_t *module_p) /**< module */
|
||||
* Resolves an export and adds it to the modules namespace object, if the export name is not yet handled.
|
||||
* Note: See 15.2.1.16.2 and 15.2.1.18
|
||||
*
|
||||
* @return ECMA_VALUE_ERROR - if an error occured
|
||||
* @return ECMA_VALUE_ERROR - if an error occurred
|
||||
* ECMA_VALUE_EMPTY - otherwise
|
||||
*/
|
||||
static ecma_value_t
|
||||
@@ -713,7 +713,7 @@ ecma_module_heap_sort_shift_down (ecma_value_t *buffer_p, /**< array of items */
|
||||
* Creates a namespace object for a module.
|
||||
* Note: See 15.2.1.18
|
||||
*
|
||||
* @return ECMA_VALUE_ERROR - if an error occured
|
||||
* @return ECMA_VALUE_ERROR - if an error occurred
|
||||
* ECMA_VALUE_EMPTY - otherwise
|
||||
*/
|
||||
static ecma_value_t
|
||||
@@ -925,7 +925,7 @@ exit:
|
||||
/**
|
||||
* Connects imported values to the current module scope.
|
||||
*
|
||||
* @return ECMA_VALUE_ERROR - if an error occured
|
||||
* @return ECMA_VALUE_ERROR - if an error occurred
|
||||
* ECMA_VALUE_EMPTY - otherwise
|
||||
*/
|
||||
static ecma_value_t
|
||||
@@ -1043,7 +1043,7 @@ ecma_module_connect_imports (ecma_module_t *module_p)
|
||||
* Initialize the current module by creating the local binding for the imported variables
|
||||
* and verifying indirect exports.
|
||||
*
|
||||
* @return ECMA_VALUE_ERROR - if an error occured
|
||||
* @return ECMA_VALUE_ERROR - if an error occurred
|
||||
* ECMA_VALUE_EMPTY - otherwise
|
||||
*/
|
||||
ecma_value_t
|
||||
@@ -1108,7 +1108,7 @@ typedef struct ecma_module_stack_item_t
|
||||
/**
|
||||
* Link module dependencies
|
||||
*
|
||||
* @return ECMA_VALUE_ERROR - if an error occured
|
||||
* @return ECMA_VALUE_ERROR - if an error occurred
|
||||
* ECMA_VALUE_UNDEFINED - otherwise
|
||||
*/
|
||||
ecma_value_t
|
||||
|
||||
@@ -36,7 +36,7 @@ typedef struct
|
||||
ecma_property_header_t header; /**< header of the property */
|
||||
uint32_t max_property_count; /**< maximum property count (power of 2) */
|
||||
uint32_t null_count; /**< number of NULLs in the map */
|
||||
uint32_t unused_count; /**< number of unused entires in the map */
|
||||
uint32_t unused_count; /**< number of unused entries in the map */
|
||||
|
||||
/*
|
||||
* The hash is followed by max_property_count ecma_cpointer_t
|
||||
|
||||
@@ -28,17 +28,17 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Check whether the object is pushed onto the occurence stack
|
||||
* Check whether the object is pushed onto the occurrence stack
|
||||
*
|
||||
* Used by:
|
||||
* - ecma_builtin_json_object step 1
|
||||
* - ecma_builtin_json_array step 1
|
||||
*
|
||||
* @return true - if the object is pushed onto the occurence stack
|
||||
* @return true - if the object is pushed onto the occurrence stack
|
||||
* false - otherwise
|
||||
*/
|
||||
bool
|
||||
ecma_json_has_object_in_stack (ecma_json_occurence_stack_item_t *stack_p, /**< stack */
|
||||
ecma_json_has_object_in_stack (ecma_json_occurrence_stack_item_t *stack_p, /**< stack */
|
||||
ecma_object_t *object_p) /**< object */
|
||||
{
|
||||
while (stack_p != NULL)
|
||||
|
||||
@@ -187,13 +187,13 @@ ecma_value_t ecma_date_value_to_time_string (ecma_number_t datetime_number);
|
||||
/* ecma-builtin-helper-json.c */
|
||||
|
||||
/**
|
||||
* Occurence stack item of JSON.stringify()
|
||||
* Occurrence stack item of JSON.stringify()
|
||||
*/
|
||||
typedef struct struct_ecma_json_occurence_stack_item_t
|
||||
typedef struct struct_ecma_json_occurrence_stack_item_t
|
||||
{
|
||||
struct struct_ecma_json_occurence_stack_item_t *next_p; /**< next stack item */
|
||||
struct struct_ecma_json_occurrence_stack_item_t *next_p; /**< next stack item */
|
||||
ecma_object_t *object_p; /**< current object */
|
||||
} ecma_json_occurence_stack_item_t;
|
||||
} ecma_json_occurrence_stack_item_t;
|
||||
|
||||
/**
|
||||
* Context for JSON.stringify()
|
||||
@@ -204,7 +204,7 @@ typedef struct
|
||||
ecma_collection_t *property_list_p;
|
||||
|
||||
/** Collection for traversing objects. */
|
||||
ecma_json_occurence_stack_item_t *occurence_stack_last_p;
|
||||
ecma_json_occurrence_stack_item_t *occurrence_stack_last_p;
|
||||
|
||||
/** The actual indentation text. */
|
||||
ecma_stringbuilder_t indent_builder;
|
||||
@@ -222,7 +222,7 @@ typedef struct
|
||||
ecma_value_t ecma_builtin_json_parse_buffer (const lit_utf8_byte_t * str_start_p,
|
||||
lit_utf8_size_t string_size);
|
||||
ecma_value_t ecma_builtin_json_stringify_no_opts (const ecma_value_t value);
|
||||
bool ecma_json_has_object_in_stack (ecma_json_occurence_stack_item_t *stack_p, ecma_object_t *object_p);
|
||||
bool ecma_json_has_object_in_stack (ecma_json_occurrence_stack_item_t *stack_p, ecma_object_t *object_p);
|
||||
|
||||
ecma_value_t
|
||||
ecma_builtin_helper_json_create_non_formatted_json (lit_utf8_byte_t left_bracket, lit_utf8_byte_t right_bracket,
|
||||
|
||||
@@ -550,7 +550,7 @@ ecma_builtin_json_parse_value (ecma_json_token_t *token_p) /**< token argument *
|
||||
}
|
||||
|
||||
/*
|
||||
* Parse error occured.
|
||||
* Parse error occurred.
|
||||
*/
|
||||
ecma_deref_object (object_p);
|
||||
return ECMA_VALUE_EMPTY;
|
||||
@@ -752,7 +752,7 @@ ecma_builtin_json_internalize_property (ecma_object_t *reviver_p, /**< reviver f
|
||||
* ECMA-262 v5, 15.12.2
|
||||
* ECMA-262 v11, 24.5.1.1 in step 2
|
||||
*
|
||||
* @return ECMA_VALUE_TRUE - if no error occured.
|
||||
* @return ECMA_VALUE_TRUE - if no error occurred.
|
||||
* error if one of the operation failed.
|
||||
*/
|
||||
static
|
||||
@@ -1010,16 +1010,16 @@ ecma_builtin_json_serialize_object (ecma_json_stringify_context_t *context_p, /*
|
||||
ecma_object_t *obj_p) /**< the object*/
|
||||
{
|
||||
/* 1. */
|
||||
if (ecma_json_has_object_in_stack (context_p->occurence_stack_last_p, obj_p))
|
||||
if (ecma_json_has_object_in_stack (context_p->occurrence_stack_last_p, obj_p))
|
||||
{
|
||||
return ecma_raise_type_error (ECMA_ERR_MSG ("The structure is cyclical"));
|
||||
}
|
||||
|
||||
/* 2. */
|
||||
ecma_json_occurence_stack_item_t stack_item;
|
||||
stack_item.next_p = context_p->occurence_stack_last_p;
|
||||
ecma_json_occurrence_stack_item_t stack_item;
|
||||
stack_item.next_p = context_p->occurrence_stack_last_p;
|
||||
stack_item.object_p = obj_p;
|
||||
context_p->occurence_stack_last_p = &stack_item;
|
||||
context_p->occurrence_stack_last_p = &stack_item;
|
||||
|
||||
/* 3. - 4.*/
|
||||
const lit_utf8_size_t stepback_size = ecma_stringbuilder_get_size (&context_p->indent_builder);
|
||||
@@ -1115,7 +1115,7 @@ ecma_builtin_json_serialize_object (ecma_json_stringify_context_t *context_p, /*
|
||||
result = ECMA_VALUE_EMPTY;
|
||||
|
||||
/* 11. */
|
||||
context_p->occurence_stack_last_p = stack_item.next_p;
|
||||
context_p->occurrence_stack_last_p = stack_item.next_p;
|
||||
|
||||
/* 12. */
|
||||
ecma_stringbuilder_revert (&context_p->indent_builder, stepback_size);
|
||||
@@ -1147,16 +1147,16 @@ ecma_builtin_json_serialize_array (ecma_json_stringify_context_t *context_p, /**
|
||||
#endif /* !JERRY_NDEBUG */
|
||||
|
||||
/* 1. */
|
||||
if (ecma_json_has_object_in_stack (context_p->occurence_stack_last_p, obj_p))
|
||||
if (ecma_json_has_object_in_stack (context_p->occurrence_stack_last_p, obj_p))
|
||||
{
|
||||
return ecma_raise_type_error (ECMA_ERR_MSG ("The structure is cyclical"));
|
||||
}
|
||||
|
||||
/* 2. */
|
||||
ecma_json_occurence_stack_item_t stack_item;
|
||||
stack_item.next_p = context_p->occurence_stack_last_p;
|
||||
ecma_json_occurrence_stack_item_t stack_item;
|
||||
stack_item.next_p = context_p->occurrence_stack_last_p;
|
||||
stack_item.object_p = obj_p;
|
||||
context_p->occurence_stack_last_p = &stack_item;
|
||||
context_p->occurrence_stack_last_p = &stack_item;
|
||||
|
||||
/* 3. - 4.*/
|
||||
const lit_utf8_size_t stepback_size = ecma_stringbuilder_get_size (&context_p->indent_builder);
|
||||
@@ -1232,7 +1232,7 @@ ecma_builtin_json_serialize_array (ecma_json_stringify_context_t *context_p, /**
|
||||
ecma_stringbuilder_append_byte (&context_p->result_builder, LIT_CHAR_RIGHT_SQUARE);
|
||||
|
||||
/* 12. */
|
||||
context_p->occurence_stack_last_p = stack_item.next_p;
|
||||
context_p->occurrence_stack_last_p = stack_item.next_p;
|
||||
|
||||
/* 13. */
|
||||
ecma_stringbuilder_revert (&context_p->indent_builder, stepback_size);
|
||||
@@ -1532,7 +1532,7 @@ ecma_value_t
|
||||
ecma_builtin_json_stringify_no_opts (const ecma_value_t value) /**< value to stringify */
|
||||
{
|
||||
ecma_json_stringify_context_t context;
|
||||
context.occurence_stack_last_p = NULL;
|
||||
context.occurrence_stack_last_p = NULL;
|
||||
context.indent_builder = ecma_stringbuilder_create ();
|
||||
context.property_list_p = NULL;
|
||||
context.replacer_function_p = NULL;
|
||||
@@ -1781,7 +1781,7 @@ ecma_builtin_json_stringify (ecma_value_t arg1, /**< value */
|
||||
ecma_free_value (space);
|
||||
|
||||
/* 1., 2., 3. */
|
||||
context.occurence_stack_last_p = NULL;
|
||||
context.occurrence_stack_last_p = NULL;
|
||||
context.indent_builder = ecma_stringbuilder_create ();
|
||||
|
||||
/* 9. */
|
||||
|
||||
@@ -311,7 +311,7 @@ ecma_builtin_object_object_set_proto (ecma_value_t arg1, /**< routine's first ar
|
||||
* ECMA-262 v6, 7.3.14
|
||||
*
|
||||
* @return ECMA_VALUE_ERROR - if the operation raised an error
|
||||
* ECMA_VALUE_{TRUE/FALSE} - depends on whether the integrity level has been set sucessfully
|
||||
* ECMA_VALUE_{TRUE/FALSE} - depends on whether the integrity level has been set successfully
|
||||
*/
|
||||
static ecma_value_t
|
||||
ecma_builtin_object_set_integrity_level (ecma_object_t *obj_p, /**< object */
|
||||
@@ -1327,12 +1327,12 @@ ecma_op_object_get_own_property_keys (ecma_value_t this_arg, /**< this argument
|
||||
ecma_object_t *obj_p = ecma_get_object_from_value (object);
|
||||
|
||||
/* 2. */
|
||||
jerry_property_filter_t filter = JERRY_PROPERTY_FILTER_EXLCUDE_SYMBOLS;
|
||||
jerry_property_filter_t filter = JERRY_PROPERTY_FILTER_EXCLUDE_SYMBOLS;
|
||||
|
||||
if (type == ECMA_OBJECT_ROUTINE_GET_OWN_PROPERTY_SYMBOLS)
|
||||
{
|
||||
filter = (JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS
|
||||
| JERRY_PROPERTY_FILTER_EXLCUDE_INTEGER_INDICES);
|
||||
filter = (JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS
|
||||
| JERRY_PROPERTY_FILTER_EXCLUDE_INTEGER_INDICES);
|
||||
}
|
||||
|
||||
ecma_collection_t *props_p = ecma_op_object_own_property_keys (obj_p, filter);
|
||||
|
||||
@@ -1420,7 +1420,7 @@ ecma_builtin_routine_list_lazy_property_names (ecma_object_t *object_p, /**< a b
|
||||
JERRY_ASSERT (ecma_get_object_type (object_p) == ECMA_OBJECT_TYPE_BUILT_IN_FUNCTION);
|
||||
JERRY_ASSERT (ecma_builtin_function_is_routine (object_p));
|
||||
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS)
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -1495,7 +1495,7 @@ ecma_builtin_list_lazy_property_names (ecma_object_t *object_p, /**< a built-in
|
||||
bool has_symbol = true;
|
||||
#endif /* JERRY_BUILTIN_REALMS */
|
||||
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS))
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS))
|
||||
{
|
||||
const ecma_builtin_property_descriptor_t *curr_property_p = ecma_builtin_property_list_references[builtin_id];
|
||||
uint8_t bitset = built_in_props_p->u2.instantiated_bitset[0];
|
||||
@@ -1540,7 +1540,7 @@ ecma_builtin_list_lazy_property_names (ecma_object_t *object_p, /**< a built-in
|
||||
}
|
||||
|
||||
#if JERRY_ESNEXT
|
||||
if (has_symbol && !(filter & JERRY_PROPERTY_FILTER_EXLCUDE_SYMBOLS))
|
||||
if (has_symbol && !(filter & JERRY_PROPERTY_FILTER_EXCLUDE_SYMBOLS))
|
||||
{
|
||||
const ecma_builtin_property_descriptor_t *curr_property_p = ecma_builtin_property_list_references[builtin_id];
|
||||
uint8_t bitset = built_in_props_p->u2.instantiated_bitset[0];
|
||||
|
||||
@@ -411,7 +411,7 @@ ecma_op_arguments_object_list_lazy_property_names (ecma_object_t *obj_p, /**< ar
|
||||
uint32_t arguments_number = arguments_p->header.u.cls.u3.arguments_number;
|
||||
uint8_t flags = arguments_p->header.u.cls.u1.arguments_flags;
|
||||
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_INTEGER_INDICES))
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_INTEGER_INDICES))
|
||||
{
|
||||
ecma_value_t *argv_p = (ecma_value_t *) (arguments_p + 1);
|
||||
|
||||
@@ -431,7 +431,7 @@ ecma_op_arguments_object_list_lazy_property_names (ecma_object_t *obj_p, /**< ar
|
||||
}
|
||||
}
|
||||
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS))
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS))
|
||||
{
|
||||
if (!(flags & ECMA_ARGUMENTS_OBJECT_LENGTH_INITIALIZED))
|
||||
{
|
||||
@@ -455,7 +455,7 @@ ecma_op_arguments_object_list_lazy_property_names (ecma_object_t *obj_p, /**< ar
|
||||
}
|
||||
|
||||
#if JERRY_ESNEXT
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_SYMBOLS)
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_SYMBOLS)
|
||||
&& !(flags & ECMA_ARGUMENTS_OBJECT_ITERATOR_INITIALIZED))
|
||||
{
|
||||
ecma_string_t *symbol_p = ecma_op_get_global_symbol (LIT_GLOBAL_SYMBOL_ITERATOR);
|
||||
|
||||
@@ -656,7 +656,7 @@ ecma_fast_array_object_own_property_keys (ecma_object_t *object_p, /**< fast acc
|
||||
|
||||
ecma_collection_t *ret_p = ecma_new_collection ();
|
||||
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_INTEGER_INDICES))
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_INTEGER_INDICES))
|
||||
{
|
||||
ecma_extended_object_t *ext_obj_p = (ecma_extended_object_t *) object_p;
|
||||
uint32_t length = ext_obj_p->u.array.length;
|
||||
@@ -679,7 +679,7 @@ ecma_fast_array_object_own_property_keys (ecma_object_t *object_p, /**< fast acc
|
||||
}
|
||||
}
|
||||
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS))
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS))
|
||||
{
|
||||
ecma_collection_push_back (ret_p, ecma_make_magic_string_value (LIT_MAGIC_STRING_LENGTH));
|
||||
}
|
||||
|
||||
@@ -2165,7 +2165,7 @@ ecma_op_function_list_lazy_property_names (ecma_object_t *object_p, /**< functio
|
||||
ecma_property_counter_t *prop_counter_p, /**< property counters */
|
||||
jerry_property_filter_t filter) /**< property name filter options */
|
||||
{
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS)
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -2239,7 +2239,7 @@ ecma_op_external_function_list_lazy_property_names (ecma_object_t *object_p, /**
|
||||
{
|
||||
JERRY_UNUSED (object_p);
|
||||
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS)
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -2262,7 +2262,7 @@ ecma_op_bound_function_list_lazy_property_names (ecma_object_t *object_p, /**< b
|
||||
ecma_property_counter_t *prop_counter_p, /**< property counters */
|
||||
jerry_property_filter_t filter) /**< property name filter options */
|
||||
{
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS)
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2146,7 +2146,7 @@ ecma_op_object_get_enumerable_property_names (ecma_object_t *obj_p, /**< routine
|
||||
ecma_enumerable_property_names_options_t option) /**< listing option */
|
||||
{
|
||||
/* 2. */
|
||||
ecma_collection_t *prop_names_p = ecma_op_object_own_property_keys (obj_p, JERRY_PROPERTY_FILTER_EXLCUDE_SYMBOLS);
|
||||
ecma_collection_t *prop_names_p = ecma_op_object_own_property_keys (obj_p, JERRY_PROPERTY_FILTER_EXCLUDE_SYMBOLS);
|
||||
|
||||
#if JERRY_BUILTIN_PROXY
|
||||
if (JERRY_UNLIKELY (prop_names_p == NULL))
|
||||
@@ -2309,7 +2309,7 @@ ecma_object_list_lazy_property_names (ecma_object_t *obj_p, /**< object */
|
||||
}
|
||||
case ECMA_OBJECT_TYPE_ARRAY:
|
||||
{
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS))
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS))
|
||||
{
|
||||
ecma_collection_push_back (prop_names_p, ecma_make_magic_string_value (LIT_MAGIC_STRING_LENGTH));
|
||||
prop_counter_p->string_named_props++;
|
||||
@@ -2479,20 +2479,20 @@ ecma_op_object_own_property_keys (ecma_object_t *obj_p, /**< object */
|
||||
counter_prop_iter_cp = prop_iter_p->next_property_cp;
|
||||
}
|
||||
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXLCUDE_INTEGER_INDICES)
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXCLUDE_INTEGER_INDICES)
|
||||
{
|
||||
JERRY_ASSERT (prop_counter.array_index_named_props == 0);
|
||||
array_index_named_props = 0;
|
||||
}
|
||||
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS)
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS)
|
||||
{
|
||||
JERRY_ASSERT (prop_counter.string_named_props == 0);
|
||||
string_named_props = 0;
|
||||
}
|
||||
|
||||
#if JERRY_ESNEXT
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXLCUDE_SYMBOLS)
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXCLUDE_SYMBOLS)
|
||||
{
|
||||
JERRY_ASSERT (prop_counter.symbol_named_props == 0);
|
||||
symbol_named_props = 0;
|
||||
@@ -2564,7 +2564,7 @@ ecma_op_object_own_property_keys (ecma_object_t *obj_p, /**< object */
|
||||
|
||||
if (ecma_string_get_array_index (name_p) != ECMA_STRING_NOT_ARRAY_INDEX)
|
||||
{
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_INTEGER_INDICES))
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_INTEGER_INDICES))
|
||||
{
|
||||
*(--array_index_current_p) = ecma_make_string_value (name_p);
|
||||
continue;
|
||||
@@ -2573,7 +2573,7 @@ ecma_op_object_own_property_keys (ecma_object_t *obj_p, /**< object */
|
||||
#if JERRY_ESNEXT
|
||||
else if (ecma_prop_name_is_symbol (name_p))
|
||||
{
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_SYMBOLS))
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_SYMBOLS))
|
||||
{
|
||||
*(--symbol_current_p) = ecma_make_symbol_value (name_p);
|
||||
continue;
|
||||
@@ -2582,7 +2582,7 @@ ecma_op_object_own_property_keys (ecma_object_t *obj_p, /**< object */
|
||||
#endif /* JERRY_ESNEXT */
|
||||
else
|
||||
{
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS))
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS))
|
||||
{
|
||||
*(--string_current_p) = ecma_make_string_value (name_p);
|
||||
continue;
|
||||
@@ -2664,7 +2664,7 @@ ecma_op_object_enumerate (ecma_object_t *obj_p) /**< object */
|
||||
|
||||
while (true)
|
||||
{
|
||||
ecma_collection_t *keys = ecma_op_object_own_property_keys (obj_p, JERRY_PROPERTY_FILTER_EXLCUDE_SYMBOLS);
|
||||
ecma_collection_t *keys = ecma_op_object_own_property_keys (obj_p, JERRY_PROPERTY_FILTER_EXCLUDE_SYMBOLS);
|
||||
|
||||
#if JERRY_ESNEXT
|
||||
if (JERRY_UNLIKELY (keys == NULL))
|
||||
|
||||
@@ -1208,7 +1208,7 @@ ecma_promise_async_then (ecma_value_t promise, /**< promise object */
|
||||
/**
|
||||
* Resolves the value and resume the execution of an async function after the resolve is completed
|
||||
*
|
||||
* @return ECMA_VALUE_UNDEFINED if not error is occured, an error otherwise
|
||||
* @return ECMA_VALUE_UNDEFINED if not error is occurred, an error otherwise
|
||||
*/
|
||||
ecma_value_t
|
||||
ecma_promise_async_await (ecma_extended_object_t *async_generator_object_p, /**< async generator function */
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
* Resolve syntactic reference.
|
||||
*
|
||||
* @return ECMA_OBJECT_POINTER_ERROR - if the operation fails
|
||||
* pointer to lexical environment - if the reference's base is resolved sucessfully,
|
||||
* pointer to lexical environment - if the reference's base is resolved successfully,
|
||||
* NULL - otherwise.
|
||||
*/
|
||||
ecma_object_t *
|
||||
|
||||
@@ -110,7 +110,7 @@ ecma_op_string_list_lazy_property_names (ecma_object_t *obj_p, /**< a String obj
|
||||
{
|
||||
JERRY_ASSERT (ecma_get_object_base_type (obj_p) == ECMA_OBJECT_BASE_TYPE_CLASS);
|
||||
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_INTEGER_INDICES))
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_INTEGER_INDICES))
|
||||
{
|
||||
ecma_extended_object_t *ext_object_p = (ecma_extended_object_t *) obj_p;
|
||||
JERRY_ASSERT (ext_object_p->u.cls.type == ECMA_OBJECT_CLASS_STRING);
|
||||
@@ -130,7 +130,7 @@ ecma_op_string_list_lazy_property_names (ecma_object_t *obj_p, /**< a String obj
|
||||
prop_counter_p->array_index_named_props += length;
|
||||
}
|
||||
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS))
|
||||
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS))
|
||||
{
|
||||
ecma_collection_push_back (prop_names_p, ecma_make_magic_string_value (LIT_MAGIC_STRING_LENGTH));
|
||||
prop_counter_p->string_named_props++;
|
||||
|
||||
@@ -1862,7 +1862,7 @@ ecma_op_typedarray_list_lazy_property_names (ecma_object_t *obj_p, /**< a TypedA
|
||||
{
|
||||
JERRY_ASSERT (ecma_object_is_typedarray (obj_p));
|
||||
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXLCUDE_INTEGER_INDICES)
|
||||
if (filter & JERRY_PROPERTY_FILTER_EXCLUDE_INTEGER_INDICES)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user