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
commit c9088fa6ec
Notes: sideshowbarker 2024-07-16 20:51:53 +09:00

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();
});