Commit 82e1fd2
committed
fix: report the swallowed fallback throw, and fix the vacuous slice
Delta review of the previous commit found four things.
The shim port's catch was empty, which hid dev-overlay bugs on that one
path. A throw out of an EventSource listener (the old shape) and out of the
SharedWorker path's onmessage ten lines below both reach the console, so
discarding it here was a new behaviour rather than the restored one the
comment claimed. It is reported now.
The slice meant to anchor that guard's assertion to the fallback function
ended at the bootstrap that follows it, so it still trailed a closing brace
plus `try {`, leaving the bootstrap's try inside the slice. The first
assertion therefore matched with the guard removed, and the comment
asserted a counterfactual that did not hold. The slice now ends at the
function's own closing brace, with an assertion that the bootstrap is
outside it, and each assertion was re-checked to fail with the guard gone.
The architecture page's Request Lifecycle said root middleware runs first
and put internal endpoints and static files after it. That was already
wrong for /__webjs/* before this PR, and the dev /public/* hoist widens it,
so two pages on the same site contradicted each other on the fact this PR
exists to correct.
The blog example's middleware comment wrote the brand as a lowercase code
token in prose, which invariant 11 does not allow.1 parent 90821f3 commit 82e1fd2
4 files changed
Lines changed: 26 additions & 7 deletions
File tree
- examples/blog
- packages/server
- src
- test/dev
- website/app/docs/architecture
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3096 | 3096 | | |
3097 | 3097 | | |
3098 | 3098 | | |
3099 | | - | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
3100 | 3107 | | |
3101 | 3108 | | |
3102 | 3109 | | |
| |||
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
65 | 75 | | |
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
69 | 79 | | |
70 | | - | |
| 80 | + | |
| 81 | + | |
71 | 82 | | |
72 | 83 | | |
73 | 84 | | |
| |||
| 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 | | |
| |||
0 commit comments