diff options
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/preview-getter.js')
-rw-r--r-- | devtools/client/debugger/test/mochitest/examples/preview-getter.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/preview-getter.js b/devtools/client/debugger/test/mochitest/examples/preview-getter.js new file mode 100644 index 0000000000..c0424ca4d1 --- /dev/null +++ b/devtools/client/debugger/test/mochitest/examples/preview-getter.js @@ -0,0 +1,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; +}
\ No newline at end of file |