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