summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorNathan Dinsmore <queryselector@gmail.com>2013-04-15 20:29:03 -0400
committerNathan Dinsmore <queryselector@gmail.com>2013-04-15 21:06:44 -0400
commit8342c06e274333910fd97a92dd44cecfe8494511 (patch)
tree4189c61cb13c21c50c13acdda6eaf78afbf5a0ae /threads.js
parent15718f44a30a022a5f45001f3fd2d506da504ff1 (diff)
downloadsnap-byow-8342c06e274333910fd97a92dd44cecfe8494511.tar.gz
snap-byow-8342c06e274333910fd97a92dd44cecfe8494511.zip
Fixed #47
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/threads.js b/threads.js
index 958a270..f5ba28f 100644
--- a/threads.js
+++ b/threads.js
@@ -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);
}
}