| Index: test/cctest/test-parsing.cc
|
| diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
|
| index 7ab47222314e0a1976945665cafd6f998e5d5528..40281678d9442c7096f3ff0ee27feaf1f3b09986 100644
|
| --- a/test/cctest/test-parsing.cc
|
| +++ b/test/cctest/test-parsing.cc
|
| @@ -3973,6 +3973,13 @@ TEST(ClassStaticPrototypeErrors) {
|
| "static get prototype() {}",
|
| "static set prototype(_) {}",
|
| "static *prototype() {}",
|
| + "static 'prototype'() {}",
|
| + "static *'prototype'() {}",
|
| + "static prot\\u006ftype() {}",
|
| + "static 'prot\\u006ftype'() {}",
|
| + "static get 'prot\\u006ftype'() {}",
|
| + "static set 'prot\\u006ftype'(_) {}",
|
| + "static *'prot\\u006ftype'() {}",
|
| NULL};
|
|
|
| static const ParserFlag always_flags[] = {
|
| @@ -3993,6 +4000,13 @@ TEST(ClassSpecialConstructorErrors) {
|
| "get constructor() {}",
|
| "get constructor(_) {}",
|
| "*constructor() {}",
|
| + "get 'constructor'() {}",
|
| + "*'constructor'() {}",
|
| + "get c\\u006fnstructor() {}",
|
| + "*c\\u006fnstructor() {}",
|
| + "get 'c\\u006fnstructor'() {}",
|
| + "get 'c\\u006fnstructor'(_) {}",
|
| + "*'c\\u006fnstructor'() {}",
|
| NULL};
|
|
|
| static const ParserFlag always_flags[] = {
|
|
|