Bug 1260329 - Properly escape the frameTable when running |dmd.py --clamp-contents|. r=mccr8.

--HG--
extra : rebase_source : 7a55328abb0a79cfa6de21734ee3d440b7625f79
This commit is contained in:
Nicholas Nethercote 2016-03-29 13:34:57 +11:00
parent 5c454494ce
commit b1378bc5e8

View File

@ -720,7 +720,7 @@ def prettyPrintDmdJson(out, j):
first = True
for k, v in j['frameTable'].iteritems():
out.write('' if first else ',')
out.write('\n "{0}": "{1}"'.format(k, v))
out.write('\n "{0}": {1}'.format(k, json.dumps(v)))
first = False
out.write('\n }\n')