Bug 1921551 - React to sync sign in flow correctly r=android-reviewers,matt-tighe
[gecko.git] / js / src / tests / test262 / language / module-code / privatename-not-valid-earlyerr-module-4.js
blobcd5d27f590edfad811744e6925336d24c9124a2a
1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2017 Valerie Young. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-module-semantics-static-semantics-early-errors
6 description: Early error when referencing privatename that has not been declared in class.
7 info: |
8   Static Semantics: Early Errors
9   Static Semantics: Early Errors
10   Module : ModuleBody
11     It is a Syntax Error if AllPrivateNamesValid of ModuleBody with an empty List as an argument is false.
12 features: [class, class-fields-private]
13 flags: [module]
14 negative:
15   phase: parse
16   type: SyntaxError
17 ---*/
19 $DONOTEVALUATE();
21 class C {
22   f() {
23     this.#x;
24     class D extends C {
25       #x;
26     }
27   }