Remove compact profile.
The standard doesn't defines ECMAScript Compact Profile as a subset of Ecma-262 Edition 5.1. Profile modes can be added easily like the minimal profile if required. JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
@@ -1649,7 +1649,7 @@ void
|
||||
lexer_construct_regexp_object (parser_context_t *context_p, /**< context */
|
||||
int parse_only) /**< parse only */
|
||||
{
|
||||
#ifndef CONFIG_ECMA_COMPACT_PROFILE_DISABLE_REGEXP_BUILTIN
|
||||
#ifndef CONFIG_DISABLE_REGEXP_BUILTIN
|
||||
const uint8_t *source_p = context_p->source_p;
|
||||
const uint8_t *regex_start_p = context_p->source_p;
|
||||
const uint8_t *regex_end_p = regex_start_p;
|
||||
@@ -1835,10 +1835,10 @@ lexer_construct_regexp_object (parser_context_t *context_p, /**< context */
|
||||
context_p->lit_object.literal_p = literal_p;
|
||||
context_p->lit_object.index = (uint16_t) (context_p->literal_count - 1);
|
||||
context_p->lit_object.type = LEXER_LITERAL_OBJECT_ANY;
|
||||
#else /* CONFIG_ECMA_COMPACT_PROFILE_DISABLE_REGEXP_BUILTIN */
|
||||
#else /* CONFIG_DISABLE_REGEXP_BUILTIN */
|
||||
(void) parse_only;
|
||||
parser_raise_error (context_p, PARSER_ERR_UNSUPPORTED_REGEXP);
|
||||
#endif /* !CONFIG_ECMA_COMPACT_PROFILE_DISABLE_REGEXP_BUILTIN */
|
||||
#endif /* !CONFIG_DISABLE_REGEXP_BUILTIN */
|
||||
} /* lexer_construct_regexp_object */
|
||||
|
||||
/**
|
||||
|
||||
@@ -718,7 +718,7 @@ parser_error_to_string (parser_error_t error) /**< error code */
|
||||
}
|
||||
case PARSER_ERR_UNSUPPORTED_REGEXP:
|
||||
{
|
||||
return "Regexp is not supported in compact profile.";
|
||||
return "Regexp is not supported in the selected profile.";
|
||||
}
|
||||
case PARSER_ERR_IDENTIFIER_TOO_LONG:
|
||||
{
|
||||
|
||||
@@ -56,7 +56,7 @@ typedef enum
|
||||
PARSER_ERR_INVALID_REGEXP, /**< invalid regular expression */
|
||||
PARSER_ERR_UNKNOWN_REGEXP_FLAG, /**< unknown regexp flag */
|
||||
PARSER_ERR_DUPLICATED_REGEXP_FLAG, /**< duplicated regexp flag */
|
||||
PARSER_ERR_UNSUPPORTED_REGEXP, /**< regular expression is not supported in compact profile */
|
||||
PARSER_ERR_UNSUPPORTED_REGEXP, /**< regular expression is not supported */
|
||||
|
||||
PARSER_ERR_IDENTIFIER_TOO_LONG, /**< too long identifier */
|
||||
PARSER_ERR_STRING_TOO_LONG, /**< too long string literal */
|
||||
|
||||
Reference in New Issue
Block a user