revert(compiler): preserve inline structured component props

This commit is contained in:
2026-08-09 13:00:18 +05:30
parent de8d792e37
commit 35cd28aad4
2 changed files with 0 additions and 20 deletions
-13
View File
@@ -1083,19 +1083,6 @@ page Home {
expect(output).toContain("__wrnexusPropAttr([");
});
test("rejects inline object props with a hoisting diagnostic", () => {
expect(() =>
generate(
parse(`component Example { view { <Child items={{ a: 1 }} /> } }`),
),
).toThrow("WRN-PROP-INLINE-OBJECT");
expect(() =>
generate(
parse(`component Example { state items = [{ a: 1 }] view { <Child items={items} /> } }`),
),
).not.toThrow();
});
test("component functions are available during server rendering", () => {
const output = generate(
parse(`