Commit 3a674ffe authored by Josh Haberman's avatar Josh Haberman

upb bugfix: JSON map entry keys were passing the wrong closure.

parent d4213d83
...@@ -11175,7 +11175,7 @@ static bool parse_mapentry_key(upb_json_parser *p) { ...@@ -11175,7 +11175,7 @@ static bool parse_mapentry_key(upb_json_parser *p) {
sel = getsel_for_handlertype(p, UPB_HANDLER_STRING); sel = getsel_for_handlertype(p, UPB_HANDLER_STRING);
upb_sink_putstring(&subsink, sel, buf, len, NULL); upb_sink_putstring(&subsink, sel, buf, len, NULL);
sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSTR); sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSTR);
upb_sink_endstr(&subsink, sel); upb_sink_endstr(&p->top->sink, sel);
multipart_end(p); multipart_end(p);
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment