Skip to content

Commit 1ac2903

Browse files
zherczegLaszloLango
authored andcommitted
Fix a few parser style issues. (#2442)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
1 parent 2534d32 commit 1ac2903

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

jerry-core/parser/js/js-lexer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,7 @@ lexer_expect_object_literal_id (parser_context_t *context_p, /**< context */
23752375
*/
23762376
void
23772377
lexer_scan_identifier (parser_context_t *context_p, /**< context */
2378-
bool propety_name) /**< property name */
2378+
bool property_name) /**< property name */
23792379
{
23802380
lexer_skip_spaces (context_p);
23812381
context_p->token.line = context_p->line;
@@ -2386,7 +2386,7 @@ lexer_scan_identifier (parser_context_t *context_p, /**< context */
23862386
{
23872387
lexer_parse_identifier (context_p, false);
23882388

2389-
if (propety_name && context_p->token.lit_location.length == 3)
2389+
if (property_name && context_p->token.lit_location.length == 3)
23902390
{
23912391
lexer_skip_spaces (context_p);
23922392

@@ -2406,7 +2406,7 @@ lexer_scan_identifier (parser_context_t *context_p, /**< context */
24062406
return;
24072407
}
24082408

2409-
if (propety_name)
2409+
if (property_name)
24102410
{
24112411
lexer_next_token (context_p);
24122412

jerry-core/parser/js/js-lexer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ typedef enum
218218
LEXER_OBJ_IDENT_CLASS_METHOD = (1u << 2), /**< expect identifier inside a class body */
219219
} lexer_obj_ident_opts_t;
220220

221-
222221
/**
223222
* Lexer literal object types.
224223
*/

jerry-core/parser/js/js-parser-internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ lexer_token_type_t lexer_check_arrow (parser_context_t *context_p);
444444
#endif /* !CONFIG_DISABLE_ES2015_ARROW_FUNCTION */
445445
void lexer_parse_string (parser_context_t *context_p);
446446
void lexer_expect_identifier (parser_context_t *context_p, uint8_t literal_type);
447-
void lexer_scan_identifier (parser_context_t *context_p, bool propety_name);
447+
void lexer_scan_identifier (parser_context_t *context_p, bool property_name);
448448
ecma_char_t lexer_hex_to_character (parser_context_t *context_p, const uint8_t *source_p, int length);
449449
void lexer_expect_object_literal_id (parser_context_t *context_p, uint32_t ident_opts);
450450
void lexer_construct_literal_object (parser_context_t *context_p, lexer_lit_location_t *literal_p,

0 commit comments

Comments
 (0)