2020-12-16 18:42:00 +01:00

17 lines
387 B
JavaScript

// NOTE: When compiling async generators,
// we run the async-generator-functions transform
// as soon as in Program:enter, so when the block-scoping plugin
// runs it has already been transpiled to a plain function.
// The functions is thus visible to the outer scope.
// This is a bug.
if (true) {
async function* run() {
return true;
}
}
function test() {
return run();
}