GNOME Bugzilla – Bug 778641
Make gnome-weather ready for new GJS
Last modified: 2017-02-15 22:06:51 UTC
Here's a patch for compatibility with the new GJS. (It fixes something which is a syntax error in ES6 but was previously silently accepted.)
Created attachment 345770 [details] [review] Avoid double declaration with 'let' The following is a syntax error in ES6: let a = 'something'; let a = 'other thing'; Previously GJS would silently accept this, but in GJS 1.48.0 it will be a syntax error. This fixes the one instance where it happens.
Created attachment 345773 [details] [review] contextMenu: Avoid double declaration with 'let' The following is a syntax error in ES6: let a = 'something'; let a = 'other thing'; Previously GJS would silently accept this, but in GJS 1.48.0 it will be a syntax error. This fixes the one instance where it happens. In this case the offending variable was a dummy variable in a destructuring assignment, so we can just elide the variable.
Comment on attachment 345773 [details] [review] contextMenu: Avoid double declaration with 'let' Sorry, the second patch was intended for a different bug.
Review of attachment 345770 [details] [review]: Sure
Attachment 345770 [details] pushed as 39c6572 - Avoid double declaration with 'let'