aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai.bazon@gmail.com>2016-04-07 13:15:28 +0300
committerMihai Bazon <mihai.bazon@gmail.com>2016-04-07 13:16:22 +0300
commit931723737204d0a042604f8051ca3af8aa08a1c7 (patch)
treedcda3d67b06e583b37c0502eff236ef896c4c19b /lib/ast.js
parent98434258d0839cb02de8b723df0cafe40c6cf218 (diff)
downloadtracifyjs-931723737204d0a042604f8051ca3af8aa08a1c7.tar.gz
tracifyjs-931723737204d0a042604f8051ca3af8aa08a1c7.zip
Avoid using inherited hasOwnProperty
Fix #1031
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ast.js b/lib/ast.js
index 0ac14dc9..2a461834 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -71,7 +71,7 @@ function DEFNODE(type, props, methods, base) {
if (type) {
ctor.prototype.TYPE = ctor.TYPE = type;
}
- if (methods) for (i in methods) if (methods.hasOwnProperty(i)) {
+ if (methods) for (i in methods) if (HOP(methods, i)) {
if (/^\$/.test(i)) {
ctor[i.substr(1)] = methods[i];
} else {