replace descriptor.writable assignment in createDecoraredObject helper - fixes #1949

This commit is contained in:
Sebastian McKenzie 2015-07-08 14:45:50 +01:00
parent 421b01865f
commit fc15c91b2a

View File

@ -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++) {