This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit 336a9eb
chore(scripts): retire the deJsxClosingTags workaround in check-vi-mock-inherit (#8133)
The shared masker `scripts/js-comment-mask.mjs` has known since objectui#6891
(PR #7880) that a `/` whose immediately preceding byte is `<` opens no regex,
so this gate's local length-preserving rewrite of JSX closing tags no longer
changes any reading.
Re-measured on this base rather than trusting the card's older figure:
walking all 1763 `vi.mock` call sites in 4380 tracked sources with every
specifier judged, the RAW mask (rewrite NOT applied) yields 0 sites whose
argument list does not balance; the same walk against a copy of the masker
with objectui#6891's rule reverted yields 6 in 6 files, one of them the
covered `@object-ui/react` site the header names, so the 0 is a live reading
and not a collapsed walk. `pnpm check:vi-mock-inherit` is byte-identical
before and after this commit.
Removed: `JSX_CLOSING_TAG`, `deJsxClosingTags`, its call in `findCallSites`
(a pure substitution -- the rewritten source was only ever the input to
`scanSource`/`blank`), the test's import of it, and its two unit cases.
The two behavioural cases stay and pass with no rewrite in the gate at all;
they are the evidence the removal changed nothing. The header section keeps
its measured history in the past tense and now records objectui#6891 as
closed -- and states explicitly that only the `<` `/` half is closed, the
other half being objectui#7882, still open.
Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
Co-authored-by: Claude <noreply@anthropic.com>1 parent 23933ae commit 336a9eb
2 files changed
Lines changed: 53 additions & 67 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
335 | 334 | | |
336 | 335 | | |
337 | 336 | | |
338 | | - | |
| 337 | + | |
339 | 338 | | |
340 | 339 | | |
341 | | - | |
| 340 | + | |
342 | 341 | | |
343 | 342 | | |
344 | 343 | | |
345 | 344 | | |
346 | 345 | | |
347 | 346 | | |
348 | 347 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
354 | 364 | | |
355 | 365 | | |
356 | 366 | | |
| |||
363 | 373 | | |
364 | 374 | | |
365 | 375 | | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
370 | 381 | | |
371 | 382 | | |
372 | 383 | | |
| |||
377 | 388 | | |
378 | 389 | | |
379 | 390 | | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | 391 | | |
397 | | - | |
398 | | - | |
399 | | - | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
400 | 396 | | |
401 | 397 | | |
402 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
306 | 306 | | |
307 | | - | |
308 | | - | |
309 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
310 | 313 | | |
311 | 314 | | |
312 | | - | |
313 | | - | |
314 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
315 | 318 | | |
316 | 319 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
331 | 334 | | |
332 | 335 | | |
333 | 336 | | |
| |||
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | 388 | | |
398 | 389 | | |
399 | 390 | | |
| |||
682 | 673 | | |
683 | 674 | | |
684 | 675 | | |
685 | | - | |
686 | | - | |
687 | | - | |
| 676 | + | |
| 677 | + | |
688 | 678 | | |
689 | 679 | | |
690 | 680 | | |
| |||
0 commit comments