* Update member-expression-to-functions 1. Babel using British spellings, so `memoise` 2. Provide a helper `AssignmentMemoiser` class, which will assign the memo'd value with the `n`th access. * Private properties! * Fixes * Tests * Update helper name * Fix privates that reference other privates * Don't extend a builtin * Rebase
27 lines
673 B
JavaScript
27 lines
673 B
JavaScript
var Foo =
|
|
/*#__PURE__*/
|
|
function () {
|
|
"use strict";
|
|
|
|
function Foo() {
|
|
babelHelpers.classCallCheck(this, Foo);
|
|
Object.defineProperty(this, _foo, {
|
|
writable: true,
|
|
value: 0
|
|
});
|
|
}
|
|
|
|
babelHelpers.createClass(Foo, [{
|
|
key: "test",
|
|
value: function test(other) {
|
|
babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo] += 1;
|
|
babelHelpers.classPrivateFieldLooseBase(this, _foo)[_foo] = 2;
|
|
babelHelpers.classPrivateFieldLooseBase(other.obj, _foo)[_foo] += 1;
|
|
babelHelpers.classPrivateFieldLooseBase(other.obj, _foo)[_foo] = 2;
|
|
}
|
|
}]);
|
|
return Foo;
|
|
}();
|
|
|
|
var _foo = babelHelpers.classPrivateFieldLooseKey("foo");
|