From bb6583faa7adc567e5e41b2099bbbe93b673ba23 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Thu, 30 Oct 2014 17:25:30 +0300 Subject: [PATCH] Fixing do_strict_eval_arguments_check helper. --- src/libcoreint/opcodes-helpers-variables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcoreint/opcodes-helpers-variables.c b/src/libcoreint/opcodes-helpers-variables.c index 4f7d50f3f..c07984fa5 100644 --- a/src/libcoreint/opcodes-helpers-variables.c +++ b/src/libcoreint/opcodes-helpers-variables.c @@ -43,9 +43,9 @@ do_strict_eval_arguments_check (ecma_reference_t ref) /**< ECMA-reference */ ecma_string_t* magic_string_arguments = ecma_get_magic_string (ECMA_MAGIC_STRING_ARGUMENTS); ret = (ecma_compare_ecma_strings (ref.referenced_name_p, - magic_string_eval) == 0 + magic_string_eval) || ecma_compare_ecma_strings (ref.referenced_name_p, - magic_string_arguments) == 0); + magic_string_arguments)); ecma_deref_ecma_string (magic_string_eval); ecma_deref_ecma_string (magic_string_arguments);