https://github.com/tc39/proposal-private-fields-in-in Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-Authored-By: Huáng Jùnliàng <jlhwung@gmail.com>
13 lines
141 B
JavaScript
13 lines
141 B
JavaScript
class Foo {
|
|
static #foo = "foo";
|
|
#bar = "bar";
|
|
|
|
static test() {
|
|
return #foo in Foo;
|
|
}
|
|
|
|
test() {
|
|
return #bar in this;
|
|
}
|
|
}
|