diff options
Diffstat (limited to 'common/modules/base.jsm')
-rw-r--r-- | common/modules/base.jsm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/modules/base.jsm b/common/modules/base.jsm index d7f50c52..4a46cfbb 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -1028,8 +1028,8 @@ Class.prototype = { */ init: function c_init() {}, - get instance() ({}), - set instance(val) Class.replaceProperty(this, "instance", val), + get instance() { return {}; }, + set instance(val) { Class.replaceProperty(this, "instance", val); }, withSavedValues: function withSavedValues(names, callback, self) { let vals = names.map(name => this[name]); @@ -1173,7 +1173,7 @@ var closureHooks = { return { configurable: false, writable: false, - get value() self.get(target, prop) + get value() { return self.get(target, prop); } } } */ @@ -1365,7 +1365,7 @@ var StructBase = Class("StructBase", Array, { this[i] = arguments[i]; }, - get toStringParams() this, + get toStringParams() { return this; }, clone: function struct_clone() this.constructor.apply(null, this.slice()), |