Skip to content

Commit

Permalink
Fix stack management error in JSON.stringify.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccxvii committed Apr 21, 2017
1 parent 24b1997 commit 32bf345
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions json.c
Expand Up @@ -236,6 +236,7 @@ static void fmtobject(js_State *J, js_Buffer **sb, js_Object *obj, const char *g
++n;
js_rot2(J);
}
js_pop(J, 1);
if (gap && n) fmtindent(J, sb, gap, level);
js_putc(J, sb, '}');
}
Expand Down

0 comments on commit 32bf345

Please sign in to comment.