Closed Kingwl closed 3 years ago
According to proposal-class-static-block
const async = 42 class C { static { const foo = await // illegal const bar = do { const b = await // legal or illegal ? } } }
It's basically means does the do expression is a function boundary( https://github.com/tc39/proposal-class-static-block/issues/43) ? Even the concept function boundary is not well-defined.
function boundary
Assuming you mean await rather than async, illegal. do has the same restrictions on syntax as the surrounding context.
await
async
do
According to proposal-class-static-block
It's basically means does the do expression is a
function boundary
( https://github.com/tc39/proposal-class-static-block/issues/43) ? Even the conceptfunction boundary
is not well-defined.