Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index c1bb363a03a867938678fe04a436ae1b6e2c4043..e45e9ebb892c7499b6808296eb6166b00c4ed58d 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -4039,9 +4039,6 @@ TEST(ClassConstructorNoErrors) { |
TEST(ClassMultipleConstructorErrors) { |
- // We currently do not allow any duplicate properties in class bodies. This |
- // test ensures that when we change that we still throw on duplicate |
- // constructors. |
const char* context_data[][2] = {{"class C {", "}"}, |
{"(class {", "});"}, |
{NULL, NULL}}; |
@@ -4059,9 +4056,7 @@ TEST(ClassMultipleConstructorErrors) { |
} |
-// TODO(arv): We should allow duplicate property names. |
-// https://code.google.com/p/v8/issues/detail?id=3570 |
-DISABLED_TEST(ClassMultiplePropertyNamesNoErrors) { |
+TEST(ClassMultiplePropertyNamesNoErrors) { |
const char* context_data[][2] = {{"class C {", "}"}, |
{"(class {", "});"}, |
{NULL, NULL}}; |
@@ -4070,6 +4065,8 @@ DISABLED_TEST(ClassMultiplePropertyNamesNoErrors) { |
"constructor() {}; static constructor() {}", |
"m() {}; static m() {}", |
"m() {}; m() {}", |
+ "static m() {}; static m() {}", |
+ "get m() {}; set m(_) {}; get m() {}; set m(_) {};", |
NULL}; |
static const ParserFlag always_flags[] = { |