(
parentZoneDelegate: ZoneDelegate,
currentZone: Zone,
targetZone: Zone,
task: Task,
)
| 143 | } |
| 144 | |
| 145 | onCancelTask( |
| 146 | parentZoneDelegate: ZoneDelegate, |
| 147 | currentZone: Zone, |
| 148 | targetZone: Zone, |
| 149 | task: Task, |
| 150 | ): any { |
| 151 | const key = task.source; |
| 152 | let instance = WtfZoneSpec.cancelInstance[key]; |
| 153 | if (!instance) { |
| 154 | instance = WtfZoneSpec.cancelInstance[key] = wtfEvents!.createInstance( |
| 155 | `Zone:cancel:${key}(ascii zone, any options)`, |
| 156 | ); |
| 157 | } |
| 158 | const retValue = parentZoneDelegate.cancelTask(targetZone, task); |
| 159 | instance(zonePathName(targetZone), shallowObj(task.data, 2)); |
| 160 | return retValue; |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | function shallowObj(obj: {[k: string]: any} | undefined, depth: number): any { |
nothing calls this directly
no test coverage detected