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 f44ef20 commit 9db0a68Copy full SHA for 9db0a68
lib/instance.js
@@ -118,7 +118,9 @@ export const values = function* (node) {
118
}
119
120
for (const property of node.children) {
121
- yield property.children[1];
+ if (property.children[1]) {
122
+ yield property.children[1];
123
+ }
124
125
};
126
@@ -128,7 +130,9 @@ export const entries = function* (node) {
128
130
129
131
132
- yield property.children;
133
+ if (property.children.length === 2) {
134
+ yield property.children;
135
136
137
138
0 commit comments