Commit 12b34db
committed
fix: correct the contradicting comment, the -1 comparison, and the action step
Second delta review found three things, two of them mine from the round
before.
The block comment above the shim guard still ended with "swallowing here
restores that behaviour", which the previous commit made false on both
halves: the code no longer swallows, and swallowing was never the restored
behaviour. Two adjacent comments asserted opposite things about the same
line, and the stale one came first. Merged into one statement of what is
actually being prevented, which is detachment and not reporting.
The ordering assertion compared indexOf results directly, and indexOf
returns -1 for a missing needle, which is less than any real index. So with
the guard removed entirely, the one case the assertion exists for, it
passed. Both indices are asserted present first now. The comment above also
claimed three assertions where five follow it, so it named the wrong set;
it now says how each was checked instead of counting them.
The architecture page's new step 2 said everything under /__webjs/* is
answered before root middleware. The server-action RPC endpoint is
dispatched in handleCore, which is reached through next() after middleware
runs, so that was wrong in the direction that matters: it would tell
someone gating actions with auth or rate-limit middleware that their
middleware does not run. Step 2 now names the set it actually covers, and
the action endpoint is back in the routing step with a note that middleware
does run for it.1 parent 82e1fd2 commit 12b34db
3 files changed
Lines changed: 34 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3084 | 3084 | | |
3085 | 3085 | | |
3086 | 3086 | | |
3087 | | - | |
3088 | | - | |
3089 | | - | |
3090 | | - | |
3091 | | - | |
3092 | | - | |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
3093 | 3097 | | |
3094 | | - | |
3095 | | - | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
3096 | 3103 | | |
3097 | 3104 | | |
3098 | 3105 | | |
3099 | 3106 | | |
3100 | | - | |
3101 | | - | |
3102 | | - | |
3103 | | - | |
3104 | | - | |
3105 | 3107 | | |
3106 | 3108 | | |
3107 | 3109 | | |
| |||
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
| |||
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
86 | 96 | | |
87 | 97 | | |
88 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
0 commit comments