diff options
| author | Jens Mönig <jens@moenig.org> | 2013-04-18 02:19:37 -0700 |
|---|---|---|
| committer | Jens Mönig <jens@moenig.org> | 2013-04-18 02:19:37 -0700 |
| commit | cfc84accea904bdac9e24ec0b95813e20e8bba3a (patch) | |
| tree | 06b588cebe8c1c112ba9cb74ca5f3cac06301910 /threads.js | |
| parent | bf15956f614902c06dca8d3f97bbc371de54fb9b (diff) | |
| parent | 8342c06e274333910fd97a92dd44cecfe8494511 (diff) | |
| download | snap-cfc84accea904bdac9e24ec0b95813e20e8bba3a.tar.gz snap-cfc84accea904bdac9e24ec0b95813e20e8bba3a.zip | |
Merge pull request #48 from queryselector/issue-47
Fixed #47
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1821,10 +1821,10 @@ Process.prototype.reportIsIdentical = function (a, b) { } function clear() { - if (a.hasOwnProperty(tag)) { + if (Object.prototype.hasOwnProperty.call(a, tag)) { delete a[tag]; } - if (b.hasOwnProperty(tag)) { + if (Object.prototype.hasOwnProperty.call(b, tag)) { delete b[tag]; } } @@ -2710,7 +2710,7 @@ VariableFrame.prototype.deleteVar = function (name) { VariableFrame.prototype.names = function () { var each, names = []; for (each in this.vars) { - if (this.vars.hasOwnProperty(each)) { + if (Object.prototype.hasOwnProperty.call(this.vars, each)) { names.push(each); } } @@ -2723,7 +2723,7 @@ VariableFrame.prototype.allNamesDict = function () { function addKeysToDict(srcDict, trgtDict) { var eachKey; for (eachKey in srcDict) { - if (srcDict.hasOwnProperty(eachKey)) { + if (Object.prototype.hasOwnProperty.call(srcDict, eachKey)) { trgtDict[eachKey] = eachKey; } } @@ -2744,7 +2744,7 @@ VariableFrame.prototype.allNames = function () { var answer = [], each, dict = this.allNamesDict(); for (each in dict) { - if (dict.hasOwnProperty(each)) { + if (Object.prototype.hasOwnProperty.call(dict, each)) { answer.push(each); } } |
