Re-target for ES.Next (#3901)

A list of changes:
- 'es2015-subset' profile is deprecated, and an 'es.next' profile is added.
- The default profile is changed to 'es.next'
- Renamed the JERRY_ES2015 guard to JERRY_ESNEXT
- Renamed JERRY_ES2015_BUILTIN_* guards to JERRY_BUILTIN_*
- Moved es2015 specific tests to a new 'es.next' subdirectory
- Updated docs, targets, and test runners to reflect these changes

Resolves #3737.

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
Dániel Bátyai
2020-06-12 17:55:00 +02:00
committed by GitHub
parent c0270c4887
commit fde0d556ac
832 changed files with 3053 additions and 3046 deletions
+2 -2
View File
@@ -112,10 +112,10 @@ construct_handler (const jerry_value_t func_obj_val, /**< function object */
int
main (void)
{
/* Test JERRY_FEATURE_SYMBOL feature as it is a must-have in ES2015 */
/* Test JERRY_FEATURE_SYMBOL feature as it is a must-have in ES.next */
if (!jerry_is_feature_enabled (JERRY_FEATURE_SYMBOL))
{
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Skipping test, ES2015 support is disabled.\n");
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Skipping test, ES.next support is disabled.\n");
return 0;
}
+1 -1
View File
@@ -40,7 +40,7 @@ test_container (void)
jerry_release_value (map_str);
jerry_release_value (global);
/* If there is no Map function this is not an es2015 profile build, skip this test case. */
/* If there is no Map function this is not an es.next profile build, skip this test case. */
if (type != JERRY_TYPE_FUNCTION)
{
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Container based test is disabled!\n");
+2 -2
View File
@@ -39,10 +39,10 @@ construct_handler (const jerry_value_t func_obj_val, /**< function object */
int
main (void)
{
/* Test JERRY_FEATURE_SYMBOL feature as it is a must-have in ES2015 */
/* Test JERRY_FEATURE_SYMBOL feature as it is a must-have in ES.next */
if (!jerry_is_feature_enabled (JERRY_FEATURE_SYMBOL))
{
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Skipping test, ES2015 support is disabled.\n");
jerry_port_log (JERRY_LOG_LEVEL_ERROR, "Skipping test, ES.next support is disabled.\n");
return 0;
}
+6 -6
View File
@@ -73,11 +73,11 @@ main (void)
ecma_free_value (negative);
TEST_ASSERT (!ECMA_IS_VALUE_ERROR (result));
#if ENABLED (JERRY_ES2015)
#if ENABLED (JERRY_ESNEXT)
TEST_ASSERT (num == 0);
#else /* !ENABLED (JERRY_ES2015) */
#else /* !ENABLED (JERRY_ESNEXT) */
TEST_ASSERT (num == 4294967270);
#endif /* ENABLED (JERRY_ES2015) */
#endif /* ENABLED (JERRY_ESNEXT) */
/* +infinity */
ecma_value_t positive_infinity = ecma_make_number_value (ecma_number_make_infinity (false));
@@ -87,11 +87,11 @@ main (void)
ecma_free_value (positive_infinity);
TEST_ASSERT (!ECMA_IS_VALUE_ERROR (result));
#if ENABLED (JERRY_ES2015)
#if ENABLED (JERRY_ESNEXT)
TEST_ASSERT (num == UINT32_MAX);
#else /* !ENABLED (JERRY_ES2015) */
#else /* !ENABLED (JERRY_ESNEXT) */
TEST_ASSERT (num == 0);
#endif /* ENABLED (JERRY_ES2015) */
#endif /* ENABLED (JERRY_ESNEXT) */
/* -infinity */
ecma_value_t negative_infinity = ecma_make_number_value (ecma_number_make_infinity (true));