Skip to content

Commit 41d76d6

Browse files
committed
Use the right trap
1 parent 5d1a96e commit 41d76d6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/constructs/interface.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,8 @@ const ${this.name}Properties = new Proxy(${this.name}PropertiesConstructor.proto
4848
deleteProperty() {
4949
return false;
5050
},
51-
get(target, key) {
52-
if (key in this) {
53-
return this[key];
54-
}
55-
return target[key];
51+
getOwnPropertyDescriptor(target, key) {
52+
5653
},
5754
});\n\n`;
5855
};

0 commit comments

Comments
 (0)