@@ -200,7 +200,7 @@ function lex(text, csp){
200
200
text :ident
201
201
} ;
202
202
203
- if ( OPERATORS . hasOwnProperty ( ident ) ) {
203
+ if ( hasOwn . call ( OPERATORS , ident ) ) {
204
204
token . fn = token . json = OPERATORS [ ident ] ;
205
205
} else {
206
206
var getter = getterFn ( ident , csp ) ;
@@ -732,7 +732,7 @@ var getterFnCache = {};
732
732
*/
733
733
function cspSafeGetterFn ( key0 , key1 , key2 , key3 , key4 ) {
734
734
return function ( scope , locals ) {
735
- var pathVal = ( locals && locals . hasOwnProperty ( key0 ) ) ? locals : scope ,
735
+ var pathVal = ( locals && hasOwn . call ( locals , key0 ) ) ? locals : scope ,
736
736
promise ;
737
737
738
738
if ( pathVal === null || pathVal === undefined ) return pathVal ;
@@ -795,7 +795,7 @@ function cspSafeGetterFn(key0, key1, key2, key3, key4) {
795
795
} ;
796
796
797
797
function getterFn ( path , csp ) {
798
- if ( getterFnCache . hasOwnProperty ( path ) ) {
798
+ if ( hasOwn . call ( getterFnCache , path ) ) {
799
799
return getterFnCache [ path ] ;
800
800
}
801
801
@@ -827,7 +827,7 @@ function getterFn(path, csp) {
827
827
// we simply dereference 's' on any .dot notation
828
828
? 's'
829
829
// but if we are first then we check locals first, and if so read it first
830
- : '((k&&k.hasOwnProperty( "' + key + '"))?k:s)' ) + '["' + key + '"]' + ';\n' +
830
+ : '((k&&hasOwn.call(k, "' + key + '"))?k:s)' ) + '["' + key + '"]' + ';\n' +
831
831
'if (s && s.then) {\n' +
832
832
' if (!("$$v" in s)) {\n' +
833
833
' p=s;\n' +
@@ -892,7 +892,7 @@ function $ParseProvider() {
892
892
return function ( exp ) {
893
893
switch ( typeof exp ) {
894
894
case 'string' :
895
- return cache . hasOwnProperty ( exp )
895
+ return hasOwn . call ( cache , exp )
896
896
? cache [ exp ]
897
897
: cache [ exp ] = parser ( exp , false , $filter , $sniffer . csp ) ;
898
898
case 'function' :
0 commit comments