| 3 | } |
| 4 | |
| 5 | class MyClass { |
| 6 | scope_confusion() { |
| 7 | console.log('scope_confusion'); |
| 8 | } |
| 9 | |
| 10 | a() { |
| 11 | this.scope_confusion(); |
| 12 | } |
| 13 | |
| 14 | b() { |
| 15 | scope_confusion(); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | |
| 20 | let obj = new myClass(); |
nothing calls this directly
no outgoing calls
no test coverage detected