Bruno Jouhier f9ccee9d83 fixed babel/babel#4632 - missing parentheses around yield expression … (#4633)
* fixed babel/babel#4632 - missing parentheses around yield expression in conditional test

* babel/babel#4632 - added test
2016-10-01 12:58:59 -04:00

12 lines
205 B
JavaScript

function* asdf() {
(yield 1) || (yield 2);
(yield b)();
new (yield b)();
(yield 1) ? (yield 2) : (yield 3);
yield (yield 1);
}
function* a(b) {
(yield xhr({ url: "views/test.html" })).data;
}