Skip to content

Commit 759a374

Browse files
committed
#233 Change detection of capability to write value into property
1 parent d67bbbe commit 759a374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TransformOperationExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export class TransformOperationExecutor {
205205
if (newValue.constructor.prototype) {
206206
const descriptor = Object.getOwnPropertyDescriptor(newValue.constructor.prototype, newValueKey);
207207
if ((this.transformationType === TransformationType.PLAIN_TO_CLASS || this.transformationType === TransformationType.CLASS_TO_CLASS)
208-
&& (newValue[newValueKey] instanceof Function || (descriptor && !descriptor.set))) // || TransformationType === TransformationType.CLASS_TO_CLASS
208+
&& (newValue[newValueKey] instanceof Function || (descriptor && !descriptor.writable))) // || TransformationType === TransformationType.CLASS_TO_CLASS
209209
continue;
210210
}
211211

0 commit comments

Comments
 (0)