1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:27:35 +00:00

LibJS: Add tests for new Obj with optional chain

This commit is contained in:
Malik Ammar Faisal 2023-06-15 15:15:37 +05:30 committed by Andreas Kling
parent 5c913d9cc4
commit c9088fa6ec

View file

@ -0,0 +1,5 @@
describe("parsing new expressions with optional chaining", () => {
expect("new Object()?.foo").toEval();
expect("new Object?.foo").not.toEval();
expect("(new Object)?.foo").toEval();
});