@@ -14,10 +14,10 @@ module.exports = function(paths, addonName, appName, options) {
1414 appStarPaths = paths [ appNameStar ] = paths [ appNameStar ] || [ ] ;
1515
1616 if ( options . removePaths ) {
17- if ( paths . hasOwnProperty ( addonName ) ) {
17+ if ( Object . prototype . hasOwnProperty . call ( paths , addonName ) ) {
1818 delete paths [ addonName ] ;
1919 }
20- if ( paths . hasOwnProperty ( addonNameStar ) ) {
20+ if ( Object . prototype . hasOwnProperty . call ( paths , addonNameStar ) ) {
2121 delete paths [ addonNameStar ]
2222 }
2323 let addonAppPathIndex = appStarPaths . indexOf ( [ addonAppPath , '*' ] . join ( '/' ) ) ;
@@ -26,16 +26,16 @@ module.exports = function(paths, addonName, appName, options) {
2626 paths [ appNameStar ] = appStarPaths ;
2727 }
2828 } else {
29- if ( ! paths . hasOwnProperty ( addonName ) ) {
29+ if ( ! Object . prototype . hasOwnProperty . call ( paths , addonName ) ) {
3030 paths [ addonName ] = [ addonAddonPath ] ;
3131 }
32- if ( ! paths . hasOwnProperty ( addonNameStar ) ) {
32+ if ( ! Object . prototype . hasOwnProperty . call ( paths , ( addonNameStar ) ) {
3333 paths [ addonNameStar ] = [ [ addonAddonPath , '*' ] . join ( '/' ) ] ;
3434 }
35- if ( ! paths . hasOwnProperty ( addonTestSupportPath ) ) {
35+ if ( ! Object . prototype . hasOwnProperty . call ( paths , addonTestSupportPath ) ) {
3636 paths [ addonTestSupportPath ] = [ [ addonPath , 'addon-test-support' ] . join ( '/' ) ] ;
3737 }
38- if ( ! paths . hasOwnProperty ( addonTestSupportStarPath ) ) {
38+ if ( ! Object . prototype . hasOwnProperty . call ( paths , addonTestSupportStarPath ) ) {
3939 paths [ addonTestSupportStarPath ] = [ [ addonPath , 'addon-test-support' , '*' ] . join ( '/' ) ] ;
4040 }
4141 if ( appStarPaths . indexOf ( addonAppPath ) === - 1 ) {
0 commit comments