From: Mihai Bazon Date: Thu, 19 Mar 2015 08:10:01 +0000 (+0200) Subject: tools/props.html: output complete JSON X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=bb010c225388604b423ad70a9d8203dc2cd3cc56;p=UglifyJS.git tools/props.html: output complete JSON --- diff --git a/tools/props.html b/tools/props.html index ff09a8da..576e1436 100644 --- a/tools/props.html +++ b/tools/props.html @@ -42,9 +42,13 @@ ta.style.width = "100%"; ta.style.height = "20em"; ta.style.boxSizing = "border-box"; - ta.value = Object.keys(props).sort(cmp).map(function(name){ - return JSON.stringify(name); - }).join(",\n"); + + + + ta.value = JSON.stringify({ + vars: [], + props: Object.keys(props).sort(cmp) + }, null, 2); document.body.appendChild(ta); function cmp(a, b) {