Quote objects with numeric keys
This commit is contained in:
parent
7628bcac01
commit
fe885cd4b6
|
|
@ -1028,7 +1028,7 @@ function OutputStream(options) {
|
|||
DEFPRINT(AST_ObjectKeyVal, function(self, output){
|
||||
var key = self.key;
|
||||
if (output.option("quote_keys")) {
|
||||
output.print_string(key);
|
||||
output.print_string(key + "");
|
||||
} else if ((typeof key == "number"
|
||||
|| !output.option("beautify")
|
||||
&& +key + "" == key)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user