diff options
| author | Nathan Dinsmore <queryselector@gmail.com> | 2013-04-15 20:29:03 -0400 |
|---|---|---|
| committer | Nathan Dinsmore <queryselector@gmail.com> | 2013-04-15 21:06:44 -0400 |
| commit | 8342c06e274333910fd97a92dd44cecfe8494511 (patch) | |
| tree | 4189c61cb13c21c50c13acdda6eaf78afbf5a0ae /threads.js | |
| parent | 15718f44a30a022a5f45001f3fd2d506da504ff1 (diff) | |
| download | snap-yow-8342c06e274333910fd97a92dd44cecfe8494511.tar.gz snap-yow-8342c06e274333910fd97a92dd44cecfe8494511.zip | |
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); } } |
