Fixing typeof for boolean arguments.

This commit is contained in:
Ruben Ayrapetyan
2014-10-15 18:02:10 +04:00
parent 49d990ad32
commit e8d728f8ce
4 changed files with 5 additions and 7 deletions
+1 -5
View File
@@ -1464,13 +1464,9 @@ opfunc_typeof (opcode_t opdata, /**< operation data */
break;
}
case ECMA_SIMPLE_VALUE_FALSE:
{
type_str_p = ecma_get_magic_string (ECMA_MAGIC_STRING_FALSE);
break;
}
case ECMA_SIMPLE_VALUE_TRUE:
{
type_str_p = ecma_get_magic_string (ECMA_MAGIC_STRING_TRUE);
type_str_p = ecma_get_magic_string (ECMA_MAGIC_STRING_BOOLEAN);
break;
}
case ECMA_SIMPLE_VALUE_EMPTY: