From f7a2af70526ab632008bb646d2b0e82f5c1724c9 Mon Sep 17 00:00:00 2001 From: William Langford Date: Mon, 22 Sep 2014 20:11:07 -0400 Subject: [PATCH] Properly handle when objects cannot be folded Fix #579. --- compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compile.c b/compile.c index 57a26d54..a0046ca0 100644 --- a/compile.c +++ b/compile.c @@ -557,6 +557,8 @@ block gen_const_object(block expr) { break; } o = jv_object_set(o, k, v); + k = jv_null(); + v = jv_null(); } if (!is_const) { jv_free(o);