Parse undefined as simple

This commit is contained in:
Ilmir Usmanov
2014-10-01 14:30:04 +04:00
parent 6561c3fe6c
commit c8b97214fe
3 changed files with 16 additions and 1 deletions
+6
View File
@@ -1221,6 +1221,12 @@ parse_primary_expression (void)
STACK_PUSH (IDX, token_data ());
break;
}
case TOK_UNDEFINED:
{
STACK_PUSH (IDX, next_temp_name ());
DUMP_OPCODE_3 (assignment, ID(1), OPCODE_ARG_TYPE_SIMPLE, ECMA_SIMPLE_VALUE_UNDEFINED);
break;
}
case TOK_NULL:
case TOK_BOOL:
case TOK_SMALL_INT: