☰
Debian Codegraph
@
8.0.6+ds1+~cs177.303.116-1
8.0.4+ds1+~cs177.303.116-3
7.20.15+ds1+~cs214.269.168-17
/
/
packages
/
babel-plugin-proposal-private-methods
/
test
/
fixtures
/
private-method
/
scopable
/
exec.js
☽
☼
packages/babel-plugin-proposal-private-methods/test/fixtures/private-method/scopable/exec.js
code
plain
raw
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
class Foo {
2
#privateMethodA() {
3
const i = 40;
4
return i;
5
}
6
7
#privateMethodB() {
8
const i = 2;
9
return i;
10
}
11
12
publicMethod() {
13
return this.#privateMethodA() + this.#privateMethodB();
14
}
15
}
16
17
expect((new Foo).publicMethod()).toEqual(42);