2020-05-31 09:57:00 -05:00

25 lines
274 B
JavaScript

var _bar = new WeakMap();
class Foo {
constructor() {
_bar.set(this, {
writable: true,
value: "bar"
});
}
static test() {
return Foo === Foo;
}
test() {
return _bar.has(this);
}
}
var _foo = {
writable: true,
value: "foo"
};