fix(decorators/mixin): do not use arrow function for constructor
It works because of the transpilation but it's not valid ES2015.
This commit is contained in:
@@ -111,7 +111,7 @@ export const mixin = MixIns => Class => {
|
||||
defineProperties(prototype, descriptors)
|
||||
}
|
||||
|
||||
const Decorator = (...args) => {
|
||||
function Decorator (...args) {
|
||||
const instance = new Class(...args)
|
||||
|
||||
for (const MixIn of MixIns) {
|
||||
|
||||
Reference in New Issue
Block a user