replace descriptor.writable assignment in createDecoraredObject helper - fixes #1949
This commit is contained in:
parent
421b01865f
commit
fc15c91b2a
@ -13,7 +13,7 @@
|
||||
|
||||
descriptor.enumerable = true;
|
||||
descriptor.configurable = true;
|
||||
descriptor.writable = true;
|
||||
if ("value" in descriptor || descriptor.initializer) descriptor.writable = true;
|
||||
|
||||
if (decorators) {
|
||||
for (var f = 0; f < decorators.length; f++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user