Semantic Diff

#8876 Add provisional %raw syntax for fixed external arguments

7 commits

25e3dfbbe00cfabda4c97b27f2be28985c94300a..pr-8876

6a51685d0 · cknitt + Claude · Oct 16, 2026, 08:01 UTC

Add provisional %raw syntax for fixed external arguments

%raw("{}") writes a fixed external argument as a JavaScript literal. The @as(value) _ form is deprecated and formats as %raw(...).

f308aecf4 · cknitt · Sep 04, 2026, 05:42 UTC

Allow slow CI builds in watch recompilation test

A cold build of the test repository can take over 20 seconds on Intel macOS CI, so the test now waits up to 60 seconds for the output.

c631d8a97 · cknitt + Claude · Oct 16, 2026, 12:57 UTC

Reject computed keys in fixed literals

A computed object key such as [f()] runs code, so it is not a literal. Also test that a %raw fixed argument survives the v0 bridge.

2d6a79e03 · cknitt + Claude · Oct 16, 2026, 13:21 UTC

Validate fixed literals as strict mode JavaScript

The output is strict, so legacy octal literals such as 007 and octal escapes are rejected.

f5219e32b · cknitt + Claude · Oct 16, 2026, 15:45 UTC

Report unused attributes on fixed arguments

As for @as(value) _, an attribute such as @ignore next to %raw has no effect.

8b91067ef · cknitt + Claude · Oct 16, 2026, 19:13 UTC

Test migrating fixed values with template syntax

Fixed values written with characters that are special in a template, such as ${, a backtick or a backslash, keep their value when the formatter migrates them to %raw(...).

077ec1786 · cknitt + Claude · Oct 17, 2026, 05:28 UTC

Allow unary minus only on numbers in fixed literals

Negating an array, object or regexp can run a valueOf method.