Huáng Jùnliàng 26eb891870
fix: Class Field Initializer should not allow await expression as immediate child (#10946)
* fix: scope.inAsync should exclude reference in class property initializers

* chore: add test on await in computed class property

* fix flow error :(
2019-12-31 09:36:03 -05:00

7 lines
98 B
JavaScript

async () => {
class C {
// here await is an identifier reference
#p = await + 42;
}
}