Skip to content

Commit

Permalink
fix: wrong path in error if value comes after a map
Browse files Browse the repository at this point in the history
  • Loading branch information
gtm-nayan committed Apr 16, 2023
1 parent 99e66d0 commit eab3761
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stringify.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export function stringify(value, reducers) {
`.get(${is_primitive(key) ? stringify_primitive(key) : '...'})`
);
str += `,${flatten(key)},${flatten(value)}`;
keys.pop();
}

str += ']';
Expand Down

0 comments on commit eab3761

Please sign in to comment.