summaryrefslogtreecommitdiff
path: root/test/fixtures/source-map/disk.js
blob: e1637d5204c2bab40e53d7914f3cdd531dfa08fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class Foo {
  constructor (x=33) {
    this.x = x ? x : 99
    if (this.x) {
      console.info('covered')
    } else {
      console.info('uncovered')
    }
    this.methodC()
  }
  methodA () {
    console.info('covered')
  }
  methodB () {
    console.info('uncovered')
  }
  methodC () {
    console.info('covered')
  }
  methodD () {
    console.info('uncovered')
  }
}

const a = new Foo(0)
const b = new Foo(33)
a.methodA()