* Save full descriptor instead of only value for private fields. Decorators can make private fields non-writable, so we need to store this information somewhere. The descriptor can also be used to implement private accessors.
13 lines
180 B
JavaScript
13 lines
180 B
JavaScript
var Foo = function Foo() {
|
|
"use strict";
|
|
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
|
|
_bar.set(this, {
|
|
writable: true,
|
|
value: void 0
|
|
});
|
|
};
|
|
|
|
var _bar = new WeakMap();
|