Further expand parsing tests around yield in generator/arrow parameters

No bugs found, but the additional coverage of arrows as default param
initializers in a generator param list seems good to have.

R=littledan@chromium.org

Review-Url: https://codereview.chromium.org/1949293002
Cr-Commit-Position: refs/heads/master@{#36089}
This commit is contained in:
adamk 2016-05-06 12:30:39 -07:00 committed by Commit bot
parent 5cbe0f5d25
commit 0783a6fc27

View File

@ -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}
};