Bug 793860, part 0a - Declare an accidentally undeclared variable. r=paul.

This commit is contained in:
Jason Orendorff
2013-12-09 14:10:51 -06:00
parent a892104779
commit 1be14562ea

View File

@@ -97,7 +97,7 @@ Handler.prototype = {
if (desc) {
if ("value" in desc) {
let [wrapped, path] = this.wrap(target, key, desc.value);
desc.value = wrapped
desc.value = wrapped;
this._emitter.emit("get", path, desc.value);
} else {
if ("get" in desc) {
@@ -112,7 +112,8 @@ Handler.prototype = {
},
defineProperty: function(target, key, desc) {
if ("value" in desc) {
[desc.value, path] = this.unwrap(target, key, desc.value);
let [unwrapped, path] = this.unwrap(target, key, desc.value);
desc.value = unwrapped;
Object.defineProperty(target, key, desc);
this._emitter.emit("set", path, desc.value);
} else {