Huáng Jùnliàng 6e57617138
Fix await binding error within static block (#13088)
* fix: allow await within SCOPE_FUNCTION under static block

* perf: scan scopeStack for once

* add new test case

* chore: update allowlist
2021-07-16 10:35:19 -04:00

8 lines
199 B
JavaScript

var C;
// await is not allowed in async arrow
C = class { static { async (await) => {} } };
C = class { static { async (x = await) => {} } };
C = class { static { async ({ [await]: x }) => {} } };