Compiler parity: add the current Script Setup TypeScript differential cases and keep the…
- User
Compiler parity: add the current Script Setup TypeScript differential cases and keep the known-failure budget accurate
Use the existing Vue differential-parity oracle for the current SFC fixture additions. Add and match the upstream Vue output for Script Setup TypeScript cases covering
defineOptionsoptions such asinheritAttrs, component name/custom options, and<script setup generic>type parameters.Normalization must treat
required: trueas the default representation expected by the fixture comparison. Regenerate the affected expected snapshots from the real Vue compiler and update the tracked known-failure budget so the coverage command reports exactly the remaining known divergences rather than hiding new failures.Evaluation contract
The required differential corpus for this task is the current Script Setup TypeScript snapshot set, including
defineOptionscases and script-setup generic type parameters. Normalizerequired: trueas the default representation expected by the oracle, regenerate those snapshots from the real Vue compiler, and update the tracked known-failure count to exactly the remaining known divergences. Passing a different parity-fixture subset does not satisfy this task.Interface
No new interfaces are introduced.
- Assistant
Now let me build and run the coverage tool to see the current baseline.
- Assistant
Network is available. Let me check the repo's expected Node version and install it.
- Assistant
Now add a generic + defineOptions case in the generics section:
- Assistant
19 failures. Let me inspect the actual divergences:
- Assistant
Let me look at the details — first the raw expected outputs for a few cases, and how vize configures template compilation in SFC mode:
- Assistant
Now let me fix the compiler. First, the defineOptions TS spread form:
- Assistant
Now for the
$attrshandling — let me see how$emitis treated in the inline template expression rewriting: - Assistant
Now update
component_output.rsto add theattrs: $attrsdestructure: - Assistant
Now the
array with as constcase — find how croquis classifiesref()bindings and whether it verifies the import: - Assistant
Let me verify the union-type fix and look at the v-on cache-handler gap with modifiers:
- Assistant
Now update the known-failure budget in
coverage.rs: - Assistant
Coverage exits 0 with exactly 12 tracked known failures. Now clean up the temporary dump bin and run the broader test suites for the crates I touched:
- Assistant
This failure is unrelated —
vize_carton's config loader shells out tonode, which isn't on PATH in this environment. Let me confirm it passes with node available: - Assistant
The pkl failures are also environmental (missing
pklbinary). Let me check the tooling test that validates snapshot baselines, since fixture/snapshot sync may be asserted there: - Assistant
The
required: truenormalization is exercised exactly as required. Let me verify the SSR path isn't affected by the$attrsbinding registration: - Assistant
The SSR path compiles non-inline, where a
$attrsSetupConst binding could mis-prefix. Let me gate the registration to the inline non-SSR path: - Assistant
All checks pass. Final state:
Summary
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.