Skip to content

Commit eab3761

Browse files
committed
fix: wrong path in error if value comes after a map
1 parent 99e66d0 commit eab3761

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/stringify.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export function stringify(value, reducers) {
128128
`.get(${is_primitive(key) ? stringify_primitive(key) : '...'})`
129129
);
130130
str += `,${flatten(key)},${flatten(value)}`;
131+
keys.pop();
131132
}
132133

133134
str += ']';

0 commit comments

Comments
 (0)