Add parser support for async for loop. Add yield expression inside parentheses.

This commit is contained in:
Windel Bouwman 2019-08-07 20:11:27 +02:00
parent b6dd92daf6
commit 69b709e2b1

View file

@ -1702,6 +1702,10 @@ impl Compiler {
let mut loop_labels = vec![];
for generator in generators {
if generator.is_async {
unimplemented!("async for comprehensions");
}
if loop_labels.is_empty() {
// Load iterator onto stack (passed as first argument):
self.emit(Instruction::LoadName {