(signal)
| 107 | exports.FetchCancelSignal = FetchCancelSignal; |
| 108 | // Check the signal, throwing if it is cancelled |
| 109 | function checkSignal(signal) { |
| 110 | if (signal == null) { |
| 111 | throw new Error("missing signal; should not happen"); |
| 112 | } |
| 113 | signal.checkSignal(); |
| 114 | return signal; |
| 115 | } |
| 116 | /** |
| 117 | * Represents a request for a resource using a URI. |
| 118 | * |