Removal of let () blocks and expressions!

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

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

Removal of let () blocks and expressions!

Unread post by Moonchild » 2017-01-08, 13:47

An important note to all extension developers and maintainers:
If you are using either let expressions:

Code: Select all

let (x=a) something;
or let blocks:

Code: Select all

let (x=a) {
  something;
  something2;
}
You need to convert those to the ES6-compatible let statements for them to work in Pale Moon 27.1 or later:

Code: Select all

{
  let x=a;
  something;
  something2;
}
Remember to properly scope these blocks with { } to keep your let variables contained and your code equivalent to what it was before!
"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

Locked