Skip to content

Add flow path for a falsy, non-nullish left operand of ?? and ??= - #65409

Open
Ryan Cavanaugh (RyanCavanaugh) with Copilot wants to merge 5 commits into
mainfrom
copilot/fix-ts7027-narrowing-issue
Open

Ryan Cavanaugh (RyanCavanaugh) with Copilot wants to merge 5 commits into
mainfrom
copilot/fix-ts7027-narrowing-issue

Conversation

Copilot AI commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

The binder treats the left operand of ?? and ??= like the left operand of ||. A non-nullish left operand goes to the true branch and a nullish one goes to the right operand. A left operand that is falsy but not nullish (false, 0, "") makes the whole expression falsy without running the right operand, but the flow graph has no path for it. This causes false TS7027 errors and wrong narrowing in the false branch:

declare function c(): boolean;
while (c() ?? (c() || true)) {}
c(); // before: TS7027 (false positive); after: reachable

function f(a: "" | undefined, b: boolean) {
  if (a ?? b) {} else {
    const u: undefined = a; // before: no error (a narrowed to undefined); after: TS2322 ("" | undefined)
  }
}

Changes

  • ast/flow.go: adds the FlowFlagsNonNullish flag. Combined with FlowFlagsFalseCondition, it means the left operand of ??/??= is falsy but not nullish.
  • checker/flow.go: getTypeAtFlowCondition narrows a condition with this flag to non-nullish first, then to falsy.
  • binder.go: the new bindNullishCoalescingLeft adds a path from the left operand to a falsy target:
    • Simple left operand: adds a FalseCondition|NonNullish condition on the operand. It is skipped when the falsy target equals the true target, as in a ?? whose value is not used as a condition. There, the existing true condition already includes falsy non-nullish values.
    • &&, ||, ?? or ! as the left operand: the label before the right operand also flows to the falsy target. This over-approximates, since some of those paths are nullish, but it never drops a real path.
    • Chains like a ?? b ?? c: two new binder fields, currentNullishTarget and currentFalsyTarget, track the enclosing ??. A ?? whose false target is the enclosing ??'s pre-right label sends its falsy path to the outer falsy target. This keeps c from being narrowed as if a could be "".
    • (a ?? b)?.c: a falsy, non-nullish a continues the chain rather than short-circuiting it.
    • createFlowCondition: a true or null left operand with the new flag is unreachable. This keeps the existing TS7027 for true ?? … and null ?? ….

Behavior change

The binder does not use types, so a left operand that can never be falsy (e.g. a: object) also gets the new path. This matches what while (a) already does. As a result, if (a ?? b) {} else { const r: false = b; } with a: object | undefined now reports TS2322, as if (a && b) already does.

New test: tsc/testdata/tests/cases/compiler/controlFlowNullishCoalescingFalsyLeft.ts. It covers literals, ??=, chains, logical left operands, nesting inside ||, and optional-chain roots with no new false positives.

Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix false TS7027 and wrong narrowing with falsy left operand Add flow path for a falsy, non-nullish left operand of ?? and ??= Nov 9, 2026
@RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) marked this pull request as ready for review November 9, 2026 19:56

This comment was marked as outdated.

@RyanCavanaugh

Copy link
Copy Markdown
Member

Copilot 🚲

Copilot AI commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Copilot 🚲

Could you clarify what you’d like me to do? Does 🚲 mean to address the earlier review findings?

@RyanCavanaugh

Copy link
Copy Markdown
Member

Copilot do another "cycle" of work on this - you have high-priority comments, and failing CI!

Copilot AI and others added 2 commits November 9, 2026 22:05
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>

Copilot AI commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Copilot do another "cycle" of work on this - you have high-priority comments, and failing CI!

Added the missing compiler baselines and regression cases in 1ff6f2b; fixed parenthesized literal reachability and nested optional-chain side-effect routing in f89b8bb. npx hereby validate completed successfully, including the full test suite, lint, and formatting. Secret scans passed; CodeQL analysis was skipped by the tool because its databases exceeded the size limit.

Unwrap outer expressions before narrowing the falsy, non-nullish flow path. Cover parenthesized and non-null-asserted discriminant accesses and update the compiler baselines.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 34bc92cf-9741-463b-bcf9-2f654427cd4d
@jakebailey

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) test it

@typescript-automation

typescript-automation Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
test top400 ✅ Started ✅ Results
user test this ✅ Started ✅ Results
run dt ✅ Started ✅ Results
perf test this faster ✅ Started 👀 Results

@typescript-automation

Copy link
Copy Markdown
Contributor

Hey Jake Bailey (@jakebailey), the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey)
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - native
Errors 41 41 ~ ~ ~ p=1.000 n=40
Symbols 88,381 88,381 ~ ~ ~ p=1.000 n=40
Types 79,508 79,508 ~ ~ ~ p=1.000 n=40
Memory Used 106,375k (± 0.02%) 106,367k (± 0.02%) ~ 106,214k 106,511k p=0.868 n=40
Memory Allocs 1,060,065 (± 0.01%) 1,059,994 (± 0.01%) ~ 1,059,656 1,060,527 p=0.192 n=40
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Parse Time 0.022s (± 2.05%) 0.022s (± 2.39%) ~ 0.019s 0.028s p=0.551 n=40
Bind Time 0.008s (± 4.59%) 0.008s (± 3.24%) ~ 0.007s 0.011s p=0.651 n=40
Check Time 0.210s (± 0.93%) 0.210s (± 0.70%) ~ 0.200s 0.223s p=0.700 n=40
Emit Time 0.140s (± 1.92%) 0.138s (± 1.01%) ~ 0.128s 0.151s p=0.451 n=40
Total Time 0.384s (± 0.96%) 0.383s (± 0.60%) ~ 0.367s 0.401s p=0.357 n=40
angular-1 - native
Errors 63 63 ~ ~ ~ p=1.000 n=40
Symbols 754,008 754,008 ~ ~ ~ p=1.000 n=40
Types 548,695 548,695 ~ ~ ~ p=1.000 n=40
Memory Used 643,227k (± 0.01%) 643,170k (± 0.01%) ~ 642,563k 643,814k p=0.150 n=40
Memory Allocs 8,330,994 (± 0.05%) 8,329,474 (± 0.03%) ~ 8,322,213 8,350,083 p=0.879 n=40
Config Time 0.007s (± 2.09%) 0.007s (± 1.57%) ~ 0.006s 0.008s p=0.394 n=40
Parse Time 0.120s (± 3.12%) 0.120s (± 3.31%) ~ 0.104s 0.161s p=0.875 n=40
Bind Time 0.041s (± 6.46%) 0.041s (± 7.64%) ~ 0.034s 0.073s p=0.930 n=40
Check Time 0.641s (± 0.96%) 0.642s (± 0.89%) ~ 0.589s 0.677s p=0.688 n=40
Emit Time 0.391s (± 0.59%) 0.391s (± 0.58%) ~ 0.378s 0.408s p=0.602 n=40
Total Time 1.212s (± 0.63%) 1.214s (± 0.62%) ~ 1.150s 1.258s p=0.595 n=40
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 676,938 676,938 ~ ~ ~ p=1.000 n=40
Types 937,070 937,070 ~ ~ ~ p=1.000 n=40
Memory Used 473,689k (± 0.01%) 473,713k (± 0.01%) ~ 473,478k 473,945k p=0.405 n=40
Memory Allocs 11,819,655 (± 0.01%) 11,819,867 (± 0.02%) ~ 11,814,964 11,845,156 p=0.685 n=40
Config Time 0.001s (± 4.69%) 0.001s (±16.22%) ~ 0.001s 0.005s p=0.345 n=40
Parse Time 0.043s (± 2.41%) 0.044s (± 3.43%) ~ 0.037s 0.057s p=0.800 n=40
Bind Time 0.014s (± 5.55%) 0.015s (± 6.82%) ~ 0.011s 0.021s p=0.499 n=40
Check Time 0.884s (± 1.11%) 0.882s (± 0.89%) ~ 0.817s 0.954s p=0.752 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 0.970s (± 1.05%) 0.971s (± 1.03%) ~ 0.902s 1.098s p=0.831 n=40
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 45,376 45,376 ~ ~ ~ p=1.000 n=40
Types 7,573 7,573 ~ ~ ~ p=1.000 n=40
Memory Used 27,741k (± 0.02%) 27,743k (± 0.02%) ~ 27,711k 27,785k p=1.000 n=40
Memory Allocs 232,066 (± 0.03%) 232,124 (± 0.04%) ~ 231,341 233,042 p=0.420 n=40
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=40
Parse Time 0.011s (± 2.24%) 0.010s (± 2.39%) ~ 0.008s 0.012s p=0.202 n=40
Bind Time 0.003s (± 8.02%) 0.003s (± 8.85%) 🔻+0.000s (+15.47%) 0.002s 0.005s p=0.029 n=40
Check Time 0.008s (± 4.00%) 0.008s (± 7.65%) ~ 0.006s 0.018s p=0.118 n=40
Emit Time 0.007s (± 4.28%) 0.008s (± 4.47%) ~ 0.006s 0.010s p=0.117 n=40
Total Time 0.030s (± 1.49%) 0.031s (± 1.77%) +0.001s (+ 1.77%) 0.028s 0.039s p=0.033 n=40
effect - native
Errors 12 12 ~ ~ ~ p=1.000 n=40
Symbols 1,234,359 1,234,359 ~ ~ ~ p=1.000 n=40
Types 893,315 893,315 ~ ~ ~ p=1.000 n=40
Memory Used 941,132k (± 0.02%) 941,166k (± 0.01%) ~ 940,333k 942,085k p=0.715 n=40
Memory Allocs 11,755,627 (± 0.04%) 11,757,166 (± 0.04%) ~ 11,741,200 11,818,559 p=0.361 n=40
Config Time 0.002s (± 2.35%) 0.002s (± 3.19%) ~ 0.002s 0.003s p=1.000 n=40
Parse Time 0.151s (± 1.90%) 0.154s (± 1.82%) +0.004s (+ 2.43%) 0.143s 0.198s p=0.029 n=40
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Check Time 0.899s (± 0.69%) 0.901s (± 0.69%) ~ 0.862s 0.957s p=0.428 n=40
Emit Time 0.485s (± 1.38%) 0.488s (± 1.14%) ~ 0.461s 0.527s p=0.664 n=40
Total Time 1.635s (± 0.57%) 1.641s (± 0.55%) ~ 1.586s 1.733s p=0.174 n=40
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=40
Symbols 3,730,768 3,730,768 ~ ~ ~ p=1.000 n=40
Types 1,354,170 1,354,170 ~ ~ ~ p=1.000 n=40
Memory Used 1,667,680k (± 0.06%) 1,668,213k (± 0.05%) ~ 1,662,804k 1,674,533k p=0.413 n=40
Memory Allocs 25,168,822 (± 0.06%) 25,163,841 (± 0.04%) ~ 25,092,831 25,285,139 p=0.695 n=40
Config Time 0.006s (± 2.00%) 0.006s (± 2.22%) ~ 0.006s 0.007s p=0.299 n=40
Parse Time 0.273s (± 2.16%) 0.273s (± 2.06%) ~ 0.239s 0.333s p=0.940 n=40
Bind Time 0.001s (±13.39%) 0.001s (± 9.50%) ~ 0.001s 0.002s p=0.821 n=40
Check Time 2.867s (± 0.73%) 2.875s (± 0.74%) ~ 2.746s 3.068s p=0.847 n=40
Emit Time 0.256s (± 2.05%) 0.256s (± 2.18%) ~ 0.233s 0.348s p=0.931 n=40
Total Time 3.897s (± 0.67%) 3.900s (± 0.67%) ~ 3.714s 4.105s p=0.715 n=40
sentry - native
Errors 2 2 ~ ~ ~ p=1.000 n=40
Symbols 4,782,801 4,782,801 ~ ~ ~ p=1.000 n=40
Types 2,605,444 2,605,444 ~ ~ ~ p=1.000 n=40
Memory Used 2,799,134k (± 0.03%) 2,798,610k (± 0.02%) ~ 2,795,747k 2,802,283k p=0.383 n=40
Memory Allocs 74,613,190 (± 0.04%) 74,621,535 (± 0.06%) ~ 74,270,795 75,332,165 p=0.735 n=40
Config Time 0.017s (± 0.92%) 0.017s (± 1.40%) ~ 0.016s 0.021s p=0.112 n=40
Parse Time 0.444s (± 2.61%) 0.445s (± 2.60%) ~ 0.395s 0.618s p=0.886 n=40
Bind Time 0.146s (± 7.53%) 0.137s (± 5.79%) ~ 0.114s 0.230s p=0.394 n=40
Check Time 6.549s (± 0.55%) 6.574s (± 0.51%) ~ 6.292s 6.754s p=0.139 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 7.207s (± 0.58%) 7.222s (± 0.56%) ~ 6.916s 7.540s p=0.428 n=40
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 1,872,618 1,872,618 ~ ~ ~ p=1.000 n=40
Types 1,150,836 1,150,836 ~ ~ ~ p=1.000 n=40
Memory Used 948,782k (± 0.01%) 948,762k (± 0.01%) ~ 947,864k 949,658k p=0.618 n=40
Memory Allocs 13,425,789 (± 0.14%) 13,420,425 (± 0.10%) ~ 13,367,790 13,562,479 p=0.984 n=40
Config Time 0.006s (± 2.08%) 0.006s (± 7.13%) ~ 0.005s 0.015s p=0.177 n=40
Parse Time 0.155s (± 1.99%) 0.158s (± 2.37%) ~ 0.137s 0.191s p=0.238 n=40
Bind Time 0.042s (± 6.07%) 0.042s (± 6.66%) ~ 0.033s 0.073s p=0.796 n=40
Check Time 1.454s (± 0.65%) 1.438s (± 0.68%) ~ 1.378s 1.498s p=0.087 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 1.674s (± 0.51%) 1.664s (± 0.57%) ~ 1.585s 1.722s p=0.176 n=40
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 1,183,341 1,183,341 ~ ~ ~ p=1.000 n=40
Types 437,605 437,605 ~ ~ ~ p=1.000 n=40
Memory Used 1,155,512k (± 0.21%) 1,158,207k (± 0.27%) ~ 1,141,608k 1,187,315k p=0.092 n=40
Memory Allocs 40,055,326 (± 0.06%) 40,081,384 (± 0.06%) ~ 39,937,912 40,371,679 p=0.295 n=40
Config Time 0.002s (±11.95%) 0.002s (± 7.14%) ~ 0.001s 0.003s p=0.104 n=40
Parse Time 0.135s (± 0.94%) 0.137s (± 1.69%) ~ 0.126s 0.173s p=0.264 n=40
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Check Time 0.797s (± 0.55%) 0.801s (± 0.97%) ~ 0.776s 0.921s p=0.966 n=40
Emit Time 0.138s (± 2.02%) 0.139s (± 1.90%) ~ 0.128s 0.163s p=0.620 n=40
Total Time 9.291s (± 0.69%) 9.301s (± 0.76%) ~ 9.081s 10.187s p=0.963 n=40
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 262,982 262,982 ~ ~ ~ p=1.000 n=40
Types 195,974 195,974 ~ ~ ~ p=1.000 n=40
Memory Used 221,431k (± 0.01%) 221,419k (± 0.01%) ~ 221,224k 221,638k p=0.501 n=40
Memory Allocs 1,911,630 (± 0.01%) 1,911,716 (± 0.01%) ~ 1,910,265 1,912,705 p=0.420 n=40
Config Time 0.000s (±136.80%) 0.000s (±139.65%) ~ 0.000s 0.001s p=1.000 n=40
Parse Time 0.049s (± 2.78%) 0.049s (± 2.18%) ~ 0.043s 0.055s p=0.942 n=40
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Check Time 0.369s (± 0.90%) 0.371s (± 0.55%) ~ 0.360s 0.387s p=0.058 n=40
Emit Time 0.047s (± 3.79%) 0.047s (± 3.74%) ~ 0.041s 0.060s p=0.685 n=40
Total Time 0.492s (± 0.70%) 0.493s (± 0.58%) ~ 0.476s 0.523s p=0.267 n=40
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 4,345,071 4,345,071 ~ ~ ~ p=1.000 n=40
Types 3,040,936 3,040,936 ~ ~ ~ p=1.000 n=40
Memory Used 2,393,509k (± 0.02%) 2,394,220k (± 0.03%) +668k (+ 0.03%) 2,391,761k 2,402,836k p=0.015 n=40
Memory Allocs 37,038,010 (± 0.04%) 37,039,036 (± 0.03%) ~ 36,981,108 37,121,876 p=0.452 n=40
Config Time 0.002s (± 6.64%) 0.002s (±12.45%) ~ 0.002s 0.008s p=0.393 n=40
Parse Time 0.242s (± 2.08%) 0.242s (± 2.42%) ~ 0.211s 0.318s p=0.806 n=40
Bind Time 0.085s (± 6.69%) 0.085s (± 6.87%) ~ 0.065s 0.132s p=0.872 n=40
Check Time 5.682s (± 0.33%) 5.684s (± 0.32%) ~ 5.598s 5.899s p=0.685 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 6.023s (± 0.31%) 6.026s (± 0.35%) ~ 5.942s 6.324s p=0.921 n=40
tanstack-router - native
Errors 1 1 ~ ~ ~ p=1.000 n=40
Symbols 568,576 568,576 ~ ~ ~ p=1.000 n=40
Types 396,130 396,130 ~ ~ ~ p=1.000 n=40
Memory Used 315,072k (± 0.01%) 315,058k (± 0.01%) ~ 314,714k 315,334k p=0.656 n=40
Memory Allocs 4,161,827 (± 0.06%) 4,164,903 (± 0.07%) ~ 4,154,501 4,194,027 p=0.077 n=40
Config Time 0.001s (± 4.68%) 0.001s (± 0.39%) ~ 0.001s 0.001s p=1.000 n=40
Parse Time 0.040s (± 2.80%) 0.042s (± 5.38%) ~ 0.033s 0.071s p=0.309 n=40
Bind Time 0.013s (± 5.46%) 0.014s (± 7.76%) ~ 0.011s 0.027s p=0.067 n=40
Check Time 0.476s (± 0.99%) 0.480s (± 1.51%) ~ 0.454s 0.564s p=0.879 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 0.547s (± 0.97%) 0.553s (± 1.30%) ~ 0.524s 0.626s p=0.455 n=40
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=40
Symbols 231,156 231,156 ~ ~ ~ p=1.000 n=40
Types 181,003 181,003 ~ ~ ~ p=1.000 n=40
Memory Used 190,789k (± 0.01%) 190,771k (± 0.01%) ~ 190,631k 190,885k p=0.320 n=40
Memory Allocs 1,307,001 (± 0.01%) 1,306,868 (± 0.01%) ~ 1,306,074 1,308,156 p=0.174 n=40
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Parse Time 0.041s (± 1.81%) 0.041s (± 1.67%) ~ 0.036s 0.046s p=0.986 n=40
Bind Time 0.020s (± 2.97%) 0.020s (± 4.02%) ~ 0.016s 0.025s p=0.728 n=40
Check Time 0.288s (± 1.14%) 0.289s (± 1.39%) ~ 0.274s 0.351s p=0.955 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 0.355s (± 0.92%) 0.357s (± 1.14%) ~ 0.341s 0.419s p=0.774 n=40
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 8,487,312 8,487,312 ~ ~ ~ p=1.000 n=40
Types 4,941,729 4,941,729 ~ ~ ~ p=1.000 n=40
Memory Used 5,675,924k (± 0.01%) 5,676,020k (± 0.01%) ~ 5,670,921k 5,682,133k p=0.973 n=40
Memory Allocs 63,188,563 (± 0.01%) 63,187,439 (± 0.01%) ~ 63,170,914 63,291,880 p=0.816 n=40
Config Time 0.024s (± 0.91%) 0.024s (± 1.93%) ~ 0.023s 0.032s p=0.536 n=40
Parse Time 0.956s (± 1.41%) 0.959s (± 1.24%) ~ 0.892s 1.053s p=0.563 n=40
Bind Time 0.355s (± 5.27%) 0.341s (± 3.47%) ~ 0.294s 0.519s p=0.125 n=40
Check Time 7.803s (± 0.85%) 7.805s (± 0.83%) ~ 7.337s 8.208s p=0.806 n=40
Emit Time 2.334s (± 5.42%) 2.307s (± 4.32%) ~ 1.992s 3.182s p=0.590 n=40
Total Time 11.537s (± 1.06%) 11.497s (± 0.94%) ~ 10.849s 12.461s p=0.942 n=40
webpack - native
Errors 637 637 ~ ~ ~ p=1.000 n=40
Symbols 916,234 916,234 ~ ~ ~ p=1.000 n=40
Types 637,790 637,790 ~ ~ ~ p=1.000 n=40
Memory Used 731,835k (± 0.01%) 731,769k (± 0.01%) ~ 731,386k 732,475k p=0.106 n=40
Memory Allocs 6,352,359 (± 0.09%) 6,356,573 (± 0.11%) ~ 6,338,106 6,443,170 p=0.283 n=40
Config Time 0.003s (± 4.06%) 0.003s (± 4.39%) ~ 0.003s 0.004s p=0.533 n=40
Parse Time 0.140s (± 1.73%) 0.143s (± 2.24%) ~ 0.122s 0.171s p=0.175 n=40
Bind Time 0.045s (± 6.33%) 0.049s (± 6.87%) ~ 0.036s 0.078s p=0.100 n=40
Check Time 1.669s (± 0.95%) 1.668s (± 0.87%) ~ 1.512s 1.796s p=0.939 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 1.884s (± 0.92%) 1.890s (± 0.87%) ~ 1.746s 2.065s p=0.237 n=40
xstate-main - native
Errors 1 1 ~ ~ ~ p=1.000 n=40
Symbols 3,978,729 3,978,729 ~ ~ ~ p=1.000 n=40
Types 4,012,886 4,012,886 ~ ~ ~ p=1.000 n=40
Memory Used 2,161,852k (± 0.00%) 2,161,862k (± 0.00%) ~ 2,161,115k 2,162,458k p=0.755 n=40
Memory Allocs 42,791,230 (± 0.01%) 42,793,740 (± 0.01%) ~ 42,775,293 42,828,605 p=0.420 n=40
Config Time 0.002s (± 6.89%) 0.002s (± 0.58%) ~ 0.002s 0.002s p=1.000 n=40
Parse Time 0.105s (± 1.72%) 0.108s (± 2.72%) +0.003s (+ 3.23%) 0.094s 0.141s p=0.039 n=40
Bind Time 0.044s (± 6.57%) 0.042s (± 7.37%) ~ 0.033s 0.083s p=0.139 n=40
Check Time 4.296s (± 0.49%) 4.292s (± 0.47%) ~ 4.161s 4.454s p=0.460 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 4.455s (± 0.47%) 4.452s (± 0.46%) ~ 4.328s 4.610s p=0.436 n=40
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • arktype - native
  • class-transformer - native
  • effect - native
  • mui-docs - native
  • sentry - native
  • social-app - native
  • strada-build-src - native
  • strada-compiler - native
  • t3code-server - native
  • tanstack-router - native
  • ts-pre-modules - native
  • vscode - native
  • webpack - native
  • xstate-main - native
Benchmark Name Iterations
Current pr 20
Baseline baseline 20

Developer Information:

Download Benchmarks

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the user tests with tsc comparing baseline and pr:

Everything looks good!

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the top 400 repos with tsc comparing baseline and pr:

Everything looks good!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False TS7027 and wrong narrowing when the left operand of ?? is falsy but not nullish

5 participants