ladybird/Userland/Libraries/LibJS/Tests/syntax/new-with-optional-chaining.js
2023-06-17 20:01:38 +02:00

5 lines
199 B
JavaScript

describe("parsing new expressions with optional chaining", () => {
expect("new Object()?.foo").toEval();
expect("new Object?.foo").not.toEval();
expect("(new Object)?.foo").toEval();
});