()
| 46 | } |
| 47 | |
| 48 | static assertPresent(): ProxyZoneSpec { |
| 49 | const spec = ProxyZoneSpec.get(); |
| 50 | if (spec === undefined) { |
| 51 | throw new Error(`Expected to be running in 'ProxyZone', but it was not found.`); |
| 52 | } |
| 53 | return spec; |
| 54 | } |
| 55 | |
| 56 | constructor(private defaultSpecDelegate: ZoneSpec | null = null) { |
| 57 | this.setDelegate(defaultSpecDelegate); |
no test coverage detected