File: exec.js

package info (click to toggle)
node-babel 6.26.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,772 kB
  • sloc: sh: 151; makefile: 76
file content (9 lines) | stat: -rw-r--r-- 144 bytes parent folder | download
1
2
3
4
5
6
7
8
9
class MyClass {
  test() {
    const that = this;
    const func = () => this === that;
    return func();
  }
}

assert(new MyClass().test());