Public bug reported:

Firefox Nightly (53) no longer supports the non-standard "for each"
looping construct, as of
https://bugzilla.mozilla.org/show_bug.cgi?id=1293305

Unfortunately, ubufox uses this construct, which causes problems as shown in 
the error console at startup:
> SyntaxError: missing ( after for     UpdateNotifier.js:217:8
> SyntaxError: missing ( after for     utils.jsm:217:8


Fortunately, it's easy to fix! Just replace code like this...
> for each (let k in [...])
...with code like this:
> for (let k of [...])

Note: I also filed this in Mozilla's bug-tracker (under Tech Evangelism | 
Add-ons) here:
 https://bugzilla.mozilla.org/show_bug.cgi?id=1322551

** Affects: ubufox (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to ubufox in Ubuntu.
https://bugs.launchpad.net/bugs/1648649

Title:
  Ubufox is broken in Firefox Nightly, due to using no-longer-supported
  "for each" syntax.  Error console now shows "SyntaxError: missing (
  after for  UpdateNotifier.js:217:8"

Status in ubufox package in Ubuntu:
  New

Bug description:
  Firefox Nightly (53) no longer supports the non-standard "for each"
  looping construct, as of
  https://bugzilla.mozilla.org/show_bug.cgi?id=1293305

  Unfortunately, ubufox uses this construct, which causes problems as shown in 
the error console at startup:
  > SyntaxError: missing ( after for     UpdateNotifier.js:217:8
  > SyntaxError: missing ( after for     utils.jsm:217:8

  
  Fortunately, it's easy to fix! Just replace code like this...
  > for each (let k in [...])
  ...with code like this:
  > for (let k of [...])

  Note: I also filed this in Mozilla's bug-tracker (under Tech Evangelism | 
Add-ons) here:
   https://bugzilla.mozilla.org/show_bug.cgi?id=1322551

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubufox/+bug/1648649/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to