Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stringify squishes objects into single line #9

Open
BlackVegetable opened this issue Jun 26, 2013 · 0 comments
Open

Stringify squishes objects into single line #9

BlackVegetable opened this issue Jun 26, 2013 · 0 comments

Comments

@BlackVegetable
Copy link

Objects in the original code as:

var obj = {
    eye : 1,
    like : 3,
    bees: "Some random string"
};

are squished when stringify is used to become:

var obj = {eye: 1, like: 3, bees: "Some random string"};

This isn't ideal for larger objects which are frequently defined over multiple lines. It is also tricky if you are trying to match line numbers in an original input program with the stringify version of its AST.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant