Files
ladybird/Tests/LibJS/Runtime/syntax/new-with-optional-chaining.js
2026-01-22 07:46:48 -05:00

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