mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
LibJS: Add tests for new Obj
with optional chain
This commit is contained in:
parent
5c913d9cc4
commit
c9088fa6ec
Notes:
sideshowbarker
2024-07-16 20:51:53 +09:00
Author: https://github.com/ammarbinfaisal
Commit: c9088fa6ec
Pull-request: https://github.com/SerenityOS/serenity/pull/18813
Issue: https://github.com/SerenityOS/serenity/issues/18155
Reviewed-by: https://github.com/drunderscore
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