Skip to content

Commit 7292aa9

Browse files
committedApr 27, 2023
fix: include missed key check
1 parent 4c8ec89 commit 7292aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/parser.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class exports.Parser extends events
188188
# push a clone so that the node in the children array can receive the #name property while the original obj can do without it
189189
objClone = {}
190190
for own key of obj
191-
objClone[key] = obj[key]
191+
objClone[key] = obj[key] if isValidKey(key)
192192
s[@options.childkey].push objClone
193193
delete obj["#name"]
194194
# re-check whether we can collapse the node now to just the charkey value

0 commit comments

Comments
 (0)
Please sign in to comment.