Skip to content

composition during return? #5

@bmeck

Description

@bmeck

If this is a syntactic sugar for generators consider the following:

function* g() {
  try {
    yield todo();
  }
  finally {
    yield cleanup();
  };
}
let o = g();
o.next();
o.return();

According to https://code.google.com/p/v8/issues/detail?id=3133 cleanup() should not yield. For some reason this sounds wrong to me, but looks true to spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions