Returning bool value instead of simple boolean completion value from ecma_op_has_binding.

This commit is contained in:
Ruben Ayrapetyan
2014-11-13 18:08:23 +03:00
parent 1fae7645af
commit 0e10e97120
5 changed files with 19 additions and 44 deletions
+1 -2
View File
@@ -374,8 +374,7 @@ opfunc_var_decl (opcode_t opdata, /**< operation data */
{
ecma_string_t *var_name_string_p = ecma_new_ecma_string_from_lit_index (opdata.data.var_decl.variable_name);
if (ecma_is_completion_value_normal_false (ecma_op_has_binding (int_data->lex_env_p,
var_name_string_p)))
if (!ecma_op_has_binding (int_data->lex_env_p, var_name_string_p))
{
const bool is_configurable_bindings = int_data->is_eval_code;