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

16 lines
395 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) {
var _run = async function* () {
return true;
};
}
function test() {
return run();
}