diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2016-04-07 13:15:28 +0300 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2016-04-07 13:16:22 +0300 |
commit | 931723737204d0a042604f8051ca3af8aa08a1c7 (patch) | |
tree | dcda3d67b06e583b37c0502eff236ef896c4c19b /lib/ast.js | |
parent | 98434258d0839cb02de8b723df0cafe40c6cf218 (diff) | |
download | tracifyjs-931723737204d0a042604f8051ca3af8aa08a1c7.tar.gz tracifyjs-931723737204d0a042604f8051ca3af8aa08a1c7.zip |
Avoid using inherited hasOwnProperty
Fix #1031
Diffstat (limited to 'lib/ast.js')
-rw-r--r-- | lib/ast.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |