Commit 4ccd956
committed
fix(run-engine): match classification failures by error name as well as instanceof
The intended thrower of UnclassifiableRunId is an injected classifier,
which can arrive from a separately built bundle carrying its own copy
of the class, where instanceof misses. The class sets its name
explicitly, so the name check keeps the wrap reliable across module
instances. A missed match was already harmless (the error bubbled
unchanged); this preserves the clearer label in the one scenario the
branch exists for.1 parent 7fa1afc commit 4ccd956
2 files changed
Lines changed: 19 additions & 1 deletion
File tree
- internal-packages/run-engine/src/engine
- tests
- waitpointCoordinator
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
52 | 66 | | |
53 | 67 | | |
54 | 68 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
| |||
0 commit comments