( message: string, reason: string, )
| 82 | } |
| 83 | |
| 84 | function denySpeculation( |
| 85 | message: string, |
| 86 | reason: string, |
| 87 | ): { |
| 88 | behavior: 'deny' |
| 89 | message: string |
| 90 | decisionReason: { type: 'other'; reason: string } |
| 91 | } { |
| 92 | return { |
| 93 | behavior: 'deny', |
| 94 | message, |
| 95 | decisionReason: { type: 'other', reason }, |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | async function copyOverlayToMain( |
| 100 | overlayPath: string, |