[Pkg-mozext-commits] [tabmixplus] 10/34: Show console warning when Tab mix failed to change getter or setter
David Prévot
taffit at moszumanska.debian.org
Mon Jun 27 13:57:56 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 1c5a70d8db740dcba0dcb67b692e88bbfb0b0522
Author: onemen <tabmix.onemen at gmail.com>
Date: Thu Jun 9 01:26:15 2016 +0300
Show console warning when Tab mix failed to change getter or setter
---
chrome/content/changecode.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/chrome/content/changecode.js b/chrome/content/changecode.js
index aa463bd..ecf893c 100644
--- a/chrome/content/changecode.js
+++ b/chrome/content/changecode.js
@@ -103,6 +103,10 @@ Tabmix.changeCode = function(aParent, afnName, aOptions) {
if (!this.type)
throw new Error("Tabmix:\n" + this.fullName + " don't have setter or getter");
+ if (!this.isValidToChange(this.fullName)) {
+ return;
+ }
+
let [obj, fnName] = [aObj || this.obj, aName || this.fnName];
let descriptor = {enumerable: true, configurable: true};
--
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