-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
makeAssimilatePrototype invokes getters when copying methods #131
Comments
To fix this issue, I think it should avoid to read and set property directly, instead call this is what "use strict";
var _Object$defineProperty = __webpack_require__(29)["default"];
exports["default"] = (function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
_Object$defineProperty(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
})();
exports.__esModule = true;
/*****************
** WEBPACK FOOTER
** ./~/babel-runtime/helpers/create-class.js
** module id = 23
** module chunks = 0
**/ |
This is fixed in the next beta release coming very soon. |
Can I ask you to check whether |
I have React component defined in es6 style class, within it, I declared some getters.
But the getters got executed in
makeAssimilatePrototype
, which is improper behavior!I got following call stack
The text was updated successfully, but these errors were encountered: