diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Tests/classes/class-constructor.js')
-rw-r--r-- | Userland/Libraries/LibJS/Tests/classes/class-constructor.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Tests/classes/class-constructor.js b/Userland/Libraries/LibJS/Tests/classes/class-constructor.js index 54a601e10c..98d70081c4 100644 --- a/Userland/Libraries/LibJS/Tests/classes/class-constructor.js +++ b/Userland/Libraries/LibJS/Tests/classes/class-constructor.js @@ -65,3 +65,10 @@ test("implicit constructor", () => { expect(new A()).toBeInstanceOf(A); }); + +test("can call constructor without parentheses", () => { + class A {} + + // prettier-ignore + expect(new A).toBeInstanceOf(A); +}); |