commit f7d5ebc3573cb19b41b87731dd522c612cfcbe8c
parent 29e9946123fa46a8d7e9b3a74605e0d5431b8b1d
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date: Thu, 6 Nov 2014 22:02:13 -0600
Default to "configurable: true" in defineProperty
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js
@@ -1414,7 +1414,7 @@ Components.utils.import("resource://gre/modules/osfile.jsm");
*/
this.defineProperty = function(obj, prop, desc, opts) {
if (typeof prop != 'string') throw new Error("Property must be a string");
- var d = { __proto__: null, enumerable: true }; // Enumerable by default
+ var d = { __proto__: null, enumerable: true, configurable: true }; // Enumerable by default
for (let p in desc) {
if (!desc.hasOwnProperty(p)) continue;
d[p] = desc[p];