fix: hasOwnProperty is not a function (#294)
this.$options.methods may created by `Object.create`, so the object without a prototype can not use `hasOwnProperty` directly
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ const keywords = [
|
||||
]
|
||||
|
||||
function hasProperty (holder, key) {
|
||||
return typeof holder !== 'undefined' && holder.hasOwnProperty(key)
|
||||
return typeof holder !== 'undefined' && Object.prototype.hasOwnProperty.call(holder, key)
|
||||
}
|
||||
|
||||
function proxyData () {
|
||||
|
||||
Reference in New Issue
Block a user