Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 718b5f4ada6b9c264add2c30f08cbf9dcec1d240..3ec32bfaa05ec42a526adbf95917af891e3338a7 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -6742,6 +6742,9 @@ TEST(DefaultParametersYieldInInitializers) { |
// Arrow function within generator has the same rules. |
{"'use strict'; (function *g() { (", ") => {} });"}, |
{"(function *g() { (", ") => {} });"}, |
+ // And similarly for arrow functions in the parameter list. |
+ {"'use strict'; (function *g(z = (", ") => {}) { });"}, |
+ {"(function *g(z = (", ") => {}) { });"}, |
{NULL, NULL} |
}; |