mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
12 lines
201 B
JavaScript
12 lines
201 B
JavaScript
|
var _brand_check_Foo = new WeakSet();
|
||
|
class Foo {
|
||
|
#foo() {
|
||
|
}
|
||
|
test(other) {
|
||
|
return _brand_check_Foo.has(other);
|
||
|
}
|
||
|
constructor(){
|
||
|
_brand_check_Foo.add(this);
|
||
|
}
|
||
|
}
|