add back descriptor.initializer existence check
This commit is contained in:
parent
9ab7df5f47
commit
02dfd18023
@ -7,7 +7,9 @@
|
||||
for (var _key in _descriptor) descriptor[_key] = _descriptor[_key];
|
||||
|
||||
// initialize it
|
||||
if (descriptor.initializer) {
|
||||
descriptor.value = descriptor.initializer.call(target);
|
||||
}
|
||||
|
||||
Object.defineProperty(target, key, descriptor);
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user