We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65663b commit 95dfac4Copy full SHA for 95dfac4
src/index.ts
@@ -91,9 +91,15 @@ export default (
91
const { node, parent, siblings } = stack.pop() ?? {};
92
if (node && parent && siblings) {
93
if (node[keyParent] !== parent)
94
- Object.defineProperty(node, keyParent, { value: parent });
+ Object.defineProperty(node, keyParent, {
95
+ configurable,
96
+ value: parent,
97
+ });
98
if (node[keySiblings] !== parent)
- Object.defineProperty(node, keySiblings, { value: siblings });
99
+ Object.defineProperty(node, keySiblings, {
100
101
+ value: siblings,
102
103
if (Object.keys(properties).some((key) => !(key in node)))
104
Object.defineProperties(node, properties);
105
yield node;
0 commit comments