[Pkg-mozext-commits] [tabmixplus] 110/147: Unable to evaluate object-shorthand functions in Firefox 54

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:27:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository tabmixplus.

commit 6d3a62920b94825fa91672118e16b117675749c7
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed Mar 8 22:39:41 2017 +0200

    Unable to evaluate object-shorthand functions in Firefox 54
---
 chrome/content/changecode.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/chrome/content/changecode.js b/chrome/content/changecode.js
index b66e58c..4282ca5 100644
--- a/chrome/content/changecode.js
+++ b/chrome/content/changecode.js
@@ -214,6 +214,9 @@ Tabmix.nonStrictMode = function(aObj, aFn, aArg) {
     if (name) {
       return fn(name + " = " + code);
     }
+    if (!code.startsWith("function")) {
+      return fn("(function " + code + ")");
+    }
     return fn("(" + code + ")");
   };
 }(this));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list