Debian Codegraph @

js/src/tests/test262/language/expressions/arrow-function/static-init-await-binding.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2021 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-class-definitions-static-semantics-early-errors
6 description: The `await` keyword is disallowed in the BindingIdentifier position
7 features: [class-static-block]
8 negative:
9 phase: parse
10 type: SyntaxError
11 ---*/
12
13 $DONOTEVALUATE();
14
15 class C {
16 static {
17 (await => 0);
18 }
19 }