"Prettify Source" in the devtools debugger mostly does not work now. Topic is solved

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 940
Joined: 2021-01-26, 11:18

"Prettify Source" in the devtools debugger mostly does not work now.

Unread post by Kris_88 » 2023-11-01, 12:50

In many cases, the problem is caused by a low default ecmaVersion value. This can be fixed by raising it to 6.

https://repo.palemoon.org/MoonchildProd ... n/acorn.js
1302: ecmaVersion: 5,

https://repo.palemoon.org/MoonchildProd ... -worker.js
1071: ecmaVersion: 5,

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35652
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: "Prettify Source" in the devtools debugger mostly does not work now.

Unread post by Moonchild » 2023-11-01, 13:28

Thanks. ECMA v6 is pretty much the minimum standard now anyway so may as well make that default ;)

Commit 33bff10b1cbd4a0746b628414d2ec5e60c5397fe fixes this.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite