| 5 | } |
| 6 | |
| 7 | class CarProxy { |
| 8 | constructor(driver) { |
| 9 | this.driver = driver; |
| 10 | } |
| 11 | drive() { |
| 12 | return (this.driver.age < 18) ? "too young to drive" : new Car().drive(); |
| 13 | }; |
| 14 | } |
| 15 | |
| 16 | class Driver { |
| 17 | constructor(age) { |
nothing calls this directly
no outgoing calls
no test coverage detected