☰
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-class-properties
/
test
/
fixtures
/
private-loose
/
static-this
/
exec.js
☽
☼
packages/babel-plugin-proposal-class-properties/test/fixtures/private-loose/static-this/exec.js
code
plain
raw
symbols
SCIP
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
class
A
{
2
static
#self = this;
3
static
#getA = () => this;
4
5
static
extract
() {
6
return
{
self
:
A
.#self,
getA
:
A
.#getA };
7
}
8
}
9
10
const
{ self, getA } =
A
.
extract
();
11
12
expect
(self).
toBe
(
A
);
13
expect
(
getA
()).
toBe
(
A
);