Get rid of ? true : false (#2575)
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -418,7 +418,7 @@ parser_parse_class_literal (parser_context_t *context_p) /**< context */
|
||||
JERRY_ASSERT (context_p->last_cbc_opcode == CBC_PUSH_LITERAL);
|
||||
|
||||
cbc_ext_opcode_t opcode;
|
||||
bool is_static = (status_flags & PARSER_CLASS_STATIC_FUNCTION) ? true : false;
|
||||
bool is_static = (bool) (status_flags & PARSER_CLASS_STATIC_FUNCTION);
|
||||
|
||||
if (is_computed)
|
||||
{
|
||||
@@ -1334,7 +1334,7 @@ parser_parse_unary_expression (parser_context_t *context_p, /**< context */
|
||||
break;
|
||||
}
|
||||
|
||||
bool is_static = (context_p->status_flags & PARSER_CLASS_STATIC_FUNCTION) ? true : false;
|
||||
bool is_static = (bool) (context_p->status_flags & PARSER_CLASS_STATIC_FUNCTION);
|
||||
parser_emit_cbc_ext (context_p, is_static ? CBC_EXT_PUSH_STATIC_SUPER : CBC_EXT_PUSH_SUPER);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user