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:
Zsolt Borbély
2021-11-02 11:37:05 +01:00
committed by GitHub
parent 89e367bbfd
commit 6a995e2887
39 changed files with 173 additions and 168 deletions
+15 -15
View File
@@ -4697,36 +4697,36 @@ jerry_object_get_property_names (const jerry_value_t obj_val, /**< object */
uint32_t index = ecma_string_get_array_index (key_p);
/* Step 2. Filter by key type */
if (filter & (JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS
| JERRY_PROPERTY_FILTER_EXLCUDE_SYMBOLS
| JERRY_PROPERTY_FILTER_EXLCUDE_INTEGER_INDICES))
if (filter & (JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS
| JERRY_PROPERTY_FILTER_EXCLUDE_SYMBOLS
| JERRY_PROPERTY_FILTER_EXCLUDE_INTEGER_INDICES))
{
if (ecma_is_value_symbol (key))
{
if (filter & JERRY_PROPERTY_FILTER_EXLCUDE_SYMBOLS)
if (filter & JERRY_PROPERTY_FILTER_EXCLUDE_SYMBOLS)
{
continue;
}
}
else if (index != ECMA_STRING_NOT_ARRAY_INDEX)
{
if ((filter & JERRY_PROPERTY_FILTER_EXLCUDE_INTEGER_INDICES)
|| ((filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS)
if ((filter & JERRY_PROPERTY_FILTER_EXCLUDE_INTEGER_INDICES)
|| ((filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS)
&& !(filter & JERRY_PROPERTY_FILTER_INTEGER_INDICES_AS_NUMBER)))
{
continue;
}
}
else if (filter & JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS)
else if (filter & JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS)
{
continue;
}
}
/* Step 3. Filter property attributes */
if (filter & (JERRY_PROPERTY_FILTER_EXLCUDE_NON_CONFIGURABLE
| JERRY_PROPERTY_FILTER_EXLCUDE_NON_ENUMERABLE
| JERRY_PROPERTY_FILTER_EXLCUDE_NON_WRITABLE))
if (filter & (JERRY_PROPERTY_FILTER_EXCLUDE_NON_CONFIGURABLE
| JERRY_PROPERTY_FILTER_EXCLUDE_NON_ENUMERABLE
| JERRY_PROPERTY_FILTER_EXCLUDE_NON_WRITABLE))
{
ecma_property_descriptor_t prop_desc;
ecma_value_t status = ecma_op_object_get_own_property_descriptor (obj_iter_p, key_p, &prop_desc);
@@ -4746,11 +4746,11 @@ jerry_object_get_property_names (const jerry_value_t obj_val, /**< object */
ecma_free_property_descriptor (&prop_desc);
if ((!(flags & JERRY_PROP_IS_CONFIGURABLE)
&& (filter & JERRY_PROPERTY_FILTER_EXLCUDE_NON_CONFIGURABLE))
&& (filter & JERRY_PROPERTY_FILTER_EXCLUDE_NON_CONFIGURABLE))
|| (!(flags & JERRY_PROP_IS_ENUMERABLE)
&& (filter & JERRY_PROPERTY_FILTER_EXLCUDE_NON_ENUMERABLE))
&& (filter & JERRY_PROPERTY_FILTER_EXCLUDE_NON_ENUMERABLE))
|| (!(flags & JERRY_PROP_IS_WRITABLE)
&& (filter & JERRY_PROPERTY_FILTER_EXLCUDE_NON_WRITABLE)))
&& (filter & JERRY_PROPERTY_FILTER_EXCLUDE_NON_WRITABLE)))
{
continue;
}
@@ -5949,7 +5949,7 @@ jerry_create_arraybuffer (const jerry_length_t size) /**< size of the backing st
* * if the typed arrays are disabled this will return a TypeError.
* * if the size is zero or buffer_p is a null pointer this will return an empty ArrayBuffer.
*
* @return value of the newly construced array buffer object
* @return value of the newly constructed array buffer object
*/
jerry_value_t
jerry_create_arraybuffer_external (const jerry_length_t size, /**< size of the buffer in bytes */
@@ -6035,7 +6035,7 @@ jerry_create_shared_arraybuffer (const jerry_length_t size) /**< size of the bac
* * if the typed arrays are disabled this will return a TypeError.
* * if the size is zero or buffer_p is a null pointer this will return an empty SharedArrayBuffer.
*
* @return value of the newly construced shared array buffer object
* @return value of the newly constructed shared array buffer object
*/
jerry_value_t
jerry_create_shared_arraybuffer_external (const jerry_length_t size, /**< size of the buffer in bytes */
+6 -6
View File
@@ -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
+1 -1
View File
@@ -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;
}
+9 -9
View File
@@ -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 */
+1 -1
View File
@@ -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;
}
+2 -2
View File
@@ -285,9 +285,9 @@ void jerry_module_set_import_callback (jerry_module_import_callback_t callback_p
jerry_value_t jerry_native_module_create (jerry_native_module_evaluate_callback_t callback,
const jerry_value_t * const exports_p, size_t number_of_exports);
jerry_value_t jerry_native_module_get_export (const jerry_value_t native_mmodule_val,
jerry_value_t jerry_native_module_get_export (const jerry_value_t native_module_val,
const jerry_value_t export_name_val);
jerry_value_t jerry_native_module_set_export (const jerry_value_t native_mmodule_val,
jerry_value_t jerry_native_module_set_export (const jerry_value_t native_module_val,
const jerry_value_t export_name_val,
const jerry_value_t value_to_set);
+9 -9
View File
@@ -234,15 +234,15 @@ typedef enum
* (equivalent to Reflect.ownKeys call) */
JERRY_PROPERTY_FILTER_TRAVERSE_PROTOTYPE_CHAIN = (1 << 0), /**< Include keys from the objects's
* prototype chain as well */
JERRY_PROPERTY_FILTER_EXLCUDE_NON_CONFIGURABLE = (1 << 1), /**< Exclude property key if
JERRY_PROPERTY_FILTER_EXCLUDE_NON_CONFIGURABLE = (1 << 1), /**< Exclude property key if
* the property is non-configurable */
JERRY_PROPERTY_FILTER_EXLCUDE_NON_ENUMERABLE = (1 << 2), /**< Exclude property key if
JERRY_PROPERTY_FILTER_EXCLUDE_NON_ENUMERABLE = (1 << 2), /**< Exclude property key if
* the property is non-enumerable */
JERRY_PROPERTY_FILTER_EXLCUDE_NON_WRITABLE = (1 << 3), /**< Exclude property key if
JERRY_PROPERTY_FILTER_EXCLUDE_NON_WRITABLE = (1 << 3), /**< Exclude property key if
* the property is non-writable */
JERRY_PROPERTY_FILTER_EXLCUDE_STRINGS = (1 << 4), /**< Exclude property key if it is a string */
JERRY_PROPERTY_FILTER_EXLCUDE_SYMBOLS = (1 << 5), /**< Exclude property key if it is a symbol */
JERRY_PROPERTY_FILTER_EXLCUDE_INTEGER_INDICES = (1 << 6), /**< Exclude property key if it is an integer index */
JERRY_PROPERTY_FILTER_EXCLUDE_STRINGS = (1 << 4), /**< Exclude property key if it is a string */
JERRY_PROPERTY_FILTER_EXCLUDE_SYMBOLS = (1 << 5), /**< Exclude property key if it is a symbol */
JERRY_PROPERTY_FILTER_EXCLUDE_INTEGER_INDICES = (1 << 6), /**< Exclude property key if it is an integer index */
JERRY_PROPERTY_FILTER_INTEGER_INDICES_AS_NUMBER = (1 << 7), /**< By default integer index property keys are
* converted to string. Enabling this flags keeps
* integer index property keys as numbers. */
@@ -445,7 +445,7 @@ typedef enum
} jerry_backtrace_frame_types_t;
/**
* Location info retreived by jerry_backtrace_get_location.
* Location info retrieved by jerry_backtrace_get_location.
*/
typedef struct
{
@@ -534,7 +534,7 @@ typedef enum
JERRY_FUNCTION_TYPE_GENERIC, /**< Generic JavaScript function */
JERRY_FUNCTION_TYPE_ACCESSOR, /**< Accessor function */
JERRY_FUNCTION_TYPE_BOUND, /**< Bound function */
JERRY_FUNCTION_TYPE_ARROW, /**< Arrow fuction */
JERRY_FUNCTION_TYPE_ARROW, /**< Arrow function */
JERRY_FUNCTION_TYPE_GENERATOR, /**< Generator function */
} jerry_function_type_t;
@@ -562,7 +562,7 @@ typedef enum
JERRY_MODULE_STATE_INVALID = 0, /**< return value for jerry_module_get_state when its argument is not a module */
JERRY_MODULE_STATE_UNLINKED = 1, /**< module is currently unlinked */
JERRY_MODULE_STATE_LINKING = 2, /**< module is currently being linked */
JERRY_MODULE_STATE_LINKED = 3, /**< module has been linked (its depencencies has been resolved) */
JERRY_MODULE_STATE_LINKED = 3, /**< module has been linked (its dependencies has been resolved) */
JERRY_MODULE_STATE_EVALUATING = 4, /**< module is currently being evaluated */
JERRY_MODULE_STATE_EVALUATED = 5, /**< module has been evaluated (its source code has been executed) */
JERRY_MODULE_STATE_ERROR = 6, /**< an error has been encountered before the evaluated state is reached */
+1 -1
View File
@@ -3541,7 +3541,7 @@ consume_last_statement:
} /* parser_parse_statements */
/**
* Free jumps stored on the stack if a parse error is occured.
* Free jumps stored on the stack if a parse error is occurred.
*/
void JERRY_ATTR_NOINLINE
parser_free_jumps (parser_stack_iterator_t iterator) /**< iterator position */
+1 -1
View File
@@ -1898,7 +1898,7 @@ scanner_reverse_info_list (parser_context_t *context_p) /**< context */
/**
* Release unused scanner info blocks.
* This should happen only if an error is occured.
* This should happen only if an error is occurred.
*/
void
scanner_cleanup (parser_context_t *context_p) /**< context */
+3 -3
View File
@@ -81,7 +81,7 @@ defined to `1`.
Enables or disables the [String](http://www.ecma-international.org/ecma-262/5.1/index.html#sec-15.5) built-in.
* `JERRY_BUILTINS`:
Enables or disable all of the [Standard Built-in ECMAScript 5.1 Objects](http://www.ecma-international.org/ecma-262/5.1/index.html#sec-15)
This option is evaulated first, any other `JERRY_BUILTIN_<name>` defines will override that specific builtin config.
This option is evaluated first, any other `JERRY_BUILTIN_<name>` defines will override that specific builtin config.
Equivalent with setting the following defines to the `JERRY_BUILTINS` value:
* `JERRY_BUILTIN_ANNEXB`
* `JERRY_BUILTIN_ARRAY`
@@ -113,7 +113,7 @@ defined to `1`.
* `JERRY_BUILTIN_REALMS`:
Enables or disables the [Realms](https://262.ecma-international.org/11.0/#sec-code-realms) support in the engine.
* `JERRY_BUILTIN_REFLECT`:
Enables or disables the [Reflext](https://262.ecma-international.org/11.0/#sec-reflect-object) built-in.
Enables or disables the [Reflect](https://262.ecma-international.org/11.0/#sec-reflect-object) built-in.
* `JERRY_BUILTIN_TYPEDARRAY`:
Enables or disables the [ArrayBuffer](http://www.ecma-international.org/ecma-262/6.0/#sec-arraybuffer-objects) and [TypedArray](http://www.ecma-international.org/ecma-262/6.0/#sec-typedarray-objects) built-ins.
* `JERRY_BUILTIN_WEAKREF`:
@@ -142,7 +142,7 @@ defined to `1`.
* [template strings](http://www.ecma-international.org/ecma-262/6.0/#sec-static-semantics-templatestrings) language element.
Furthermore all builtins follow the latest ECMAScript specification including those which behave differently in ES5.1.
This option is evaulated first, any other `JERRY_<name>` defines will override that specific entry.
This option is evaluated first, any other `JERRY_<name>` defines will override that specific entry.
Equivalent with setting the following defines to the `JERRY_ESNEXT` value:
* `JERRY_BUILTIN_BIGINT`
* `JERRY_BUILTIN_CONTAINER`