Skip to content

Commit

Permalink
feat: Allow nodes with null values
Browse files Browse the repository at this point in the history
  • Loading branch information
mureinik committed Nov 10, 2023
1 parent a468ddc commit 836a6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defaultTraveler.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const defaultTraveler = {
Starts travelling through the specified AST `node` with the provided `state`.
This method is recursively called by each node handler.
*/
if (this[node.type]) {
if (node && this[node.type]) {
this[node.type](node, state)
}
},
Expand Down

0 comments on commit 836a6e9

Please sign in to comment.