☰
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-loose
/
reassignment
/
exec.js
☽
☼
packages/babel-plugin-proposal-private-methods/test/fixtures/private-method-loose/reassignment/exec.js
code
plain
raw
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
let counter = 0;
2
class Foo {
3
constructor() {
4
this.#privateMethod = ++counter;
5
}
6
7
#privateMethod() {
8
return 42;
9
}
10
}
11
12
expect(() => new Foo).toThrow();
13
expect(counter).toBe(1);