From eab3761da600c5c4726b1c2710b1ea2d5b93bef9 Mon Sep 17 00:00:00 2001 From: gtmnayan Date: Sun, 16 Apr 2023 19:39:49 +0545 Subject: [PATCH] fix: wrong path in error if value comes after a map --- src/stringify.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stringify.js b/src/stringify.js index 8ce427e..64b53bf 100644 --- a/src/stringify.js +++ b/src/stringify.js @@ -128,6 +128,7 @@ export function stringify(value, reducers) { `.get(${is_primitive(key) ? stringify_primitive(key) : '...'})` ); str += `,${flatten(key)},${flatten(value)}`; + keys.pop(); } str += ']';