Implement harmony generators and yield

Uses #716's implementation and adds tests.

Fixes #716.
This commit is contained in:
Darío Javier Cravero
2016-02-04 22:19:48 +01:00
committed by Richard van Velzen
parent 634f231b78
commit 91cdb93e57
5 changed files with 60 additions and 2 deletions

View File

@@ -418,3 +418,19 @@ regression_cannot_use_of: {
foo(); /* Label statement missing? No prob. */
}
}
generators: {
input: {
function* fn() {};
}
expect_exact: "function*fn(){}"
}
generators_yield: {
input: {
function* fn() {
yield remote();
}
}
expect_exact: "function*fn(){yield remote()}"
}