summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/preview-getter.js
blob: c0424ca4d17bc1e34f12ed37717f76348d83bc2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const obj = {
  propA: 1,
  propB: { arr: [1,2,3,4,5] },
  get getPropA() {
    this.propA;
    return this.propA;
  },
  get getPropB() {
    return this.propB;
  }
}

function funcA() {
  obj.getPropA;
}