This commit is contained in:
Alon Zakai 2021-04-25 00:13:23 -04:00 committed by GitHub
commit d0edec427d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,12 @@
end : my_end_token(M),
properties : M.properties.map(function(prop) {
prop.type = "Property";
return from_moz(prop)
var ret = from_moz(prop);
if (prop.key.type === "Literal" &&
(prop.key.raw[0] === '"' || prop.key.raw[0] === "'")) {
ret.quote = true;
}
return ret;
})
});
},