Fixes extra parens around yield downleveled from await

This commit is contained in:
Ron Buckton
2016-04-06 15:49:53 -07:00
parent 39c877a7f9
commit 4da09b73bc
4 changed files with 17 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ function * foo(a = yield => yield) {
//// [FunctionDeclaration10_es6.js]
function* foo(a) {
if (a === void 0) { a = (yield); }
if (a === void 0) { a = yield; }
}
yield;
{

View File

@@ -12,13 +12,13 @@ let C = class extends class extends class {
this.a = 1;
}
} {
constructor(...args_1) {
super(...args_1);
constructor(...args) {
super(...args);
this.b = 2;
}
} {
constructor(...args_2) {
super(...args_2);
constructor(...args) {
super(...args);
this.c = 3;
}
};