Unify the usage of boolean value creations. (#2623)

JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
László Langó
2018-11-30 11:33:30 +01:00
committed by Zoltan Herczeg
parent 6dfa4efbfb
commit a08291eb12
9 changed files with 23 additions and 39 deletions
@@ -373,7 +373,7 @@ ecma_op_function_has_instance (ecma_object_t *func_obj_p, /**< Function object *
ecma_object_t *prototype_obj_p = ecma_get_object_from_value (prototype_obj_value);
JERRY_ASSERT (prototype_obj_p != NULL);
bool result = false;
ecma_value_t result = ECMA_VALUE_FALSE;
while (true)
{
@@ -386,13 +386,13 @@ ecma_op_function_has_instance (ecma_object_t *func_obj_p, /**< Function object *
if (v_obj_p == prototype_obj_p)
{
result = true;
result = ECMA_VALUE_TRUE;
break;
}
}
ecma_deref_object (prototype_obj_p);
return ecma_make_boolean_value (result);
return result;
} /* ecma_op_function_has_instance */