From f113f3c3844ae8962a7322f45b90e693e4551635 Mon Sep 17 00:00:00 2001 From: neis Date: Mon, 12 Oct 2015 05:35:57 -0700 Subject: [PATCH] [es6] Stage --harmony-completion. R=rossberg BUG= Review URL: https://codereview.chromium.org/1403683003 Cr-Commit-Position: refs/heads/master@{#31209} --- src/flag-definitions.h | 12 ++++++------ test/test262/test262.status | 5 +++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/flag-definitions.h b/src/flag-definitions.h index d6c2cf7d9e..266bd5e33c 100644 --- a/src/flag-definitions.h +++ b/src/flag-definitions.h @@ -199,14 +199,14 @@ DEFINE_BOOL(legacy_const, true, "legacy semantics for const in sloppy mode") V(harmony_destructuring, "harmony destructuring") \ V(harmony_default_parameters, "harmony default parameters") \ V(harmony_sharedarraybuffer, "harmony sharedarraybuffer") \ - V(harmony_simd, "harmony simd") \ - V(harmony_completion, "harmony completion value semantics") + V(harmony_simd, "harmony simd") // Features that are complete (but still behind --harmony/es-staging flag). -#define HARMONY_STAGED(V) \ - V(harmony_tostring, "harmony toString") \ - V(harmony_sloppy, "harmony features in sloppy mode") \ - V(harmony_sloppy_let, "harmony let in sloppy mode") +#define HARMONY_STAGED(V) \ + V(harmony_tostring, "harmony toString") \ + V(harmony_sloppy, "harmony features in sloppy mode") \ + V(harmony_sloppy_let, "harmony let in sloppy mode") \ + V(harmony_completion, "harmony completion value semantics") // Features that are shipping (turned on by default, but internal flag remains). #define HARMONY_SHIPPING(V) \ diff --git a/test/test262/test262.status b/test/test262/test262.status index c12959a1f1..b6ae77c17c 100644 --- a/test/test262/test262.status +++ b/test/test262/test262.status @@ -734,6 +734,11 @@ 'language/types/number/S8.5_A2.1': [PASS, FAIL_OK], 'language/types/number/S8.5_A2.2': [PASS, FAIL_OK], + # 'if' should never return a completion whose value component is empty. + # https://bugs.ecmascript.org/show_bug.cgi?id=4540 + 'language/statements/for/S12.6.3_A9.1': [FAIL], + 'language/statements/for/S12.6.3_A9': [FAIL], + ############################ INVALID TESTS ############################# # The reference value calculated by Test262 is incorrect if you run these