"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.
Kris_88
Board Warrior
Board Warrior
Posts: 1174
Joined: 2021-01-26, 11:18

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

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
Project founder
Project founder
Posts: 39260
Joined: 2011-08-28, 17:27
Location: Sweden

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

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.
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite