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:
parent
5c913d9cc4
commit
c9088fa6ec
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue